/* ============================================
   Category Product Page Styles
   Modern UI/UX for Product Detail Pages
   ============================================ */

/* ===== Breadcrumb Styles ===== */
.product_bread {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb_content ul {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb_content ul li {
    color: #6c757d;
    font-size: 0.95rem;
}

.breadcrumb_content ul li a {
    color: #7D1128;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb_content ul li a:hover {
    color: #9a1a3a;
    text-decoration: underline;
}

/* ===== Product Details Section ===== */
.product_details {
    padding: 3rem 0;
    background: #ffffff;
}

.product-details-tab {
    position: sticky;
    top: 100px;
}

/* Image Gallery Styles */
.zoomWrapper {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.zoomWrapper:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.zoomWrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.single-zoom-thumb {
    margin-top: 1rem;
}

.single-zoom-thumb ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.single-zoom-thumb ul li {
    flex: 0 0 auto;
}

.single-zoom-thumb ul li a {
    display: block;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.single-zoom-thumb ul li a:hover,
.single-zoom-thumb ul li a.active {
    border-color: #7D1128;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(125, 17, 40, 0.2);
}

.single-zoom-thumb ul li a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Product Info Section */
.product_d_right {
    padding: 2rem 0;
}

.product_d_right h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-family: 'Cormorant Garamond', serif;
}

.product_d_right h1:first-of-type {
    color: #7D1128;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product_d_right h1 .design-code {
    font-size: 0.75em;
    font-weight: 400;
    color: #6c757d;
    font-style: italic;
}

.product-description {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #7D1128;
}

.product_d_right p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0;
}

.preorder-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #7D1128 0%, #9a1a3a 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(125, 17, 40, 0.3);
}

.preorder-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(125, 17, 40, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.product-item-wrapper {
    margin-top: 2rem;
}

/* ===== Product Item Component Styles ===== */

/* Product Select Wrapper */
.product-select-wrapper {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.product-select-wrapper label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.product-select-wrapper select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #ffffff;
    color: #1a1a1a;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237D1128' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.product-select-wrapper select:hover {
    border-color: #7D1128;
}

.product-select-wrapper select:focus {
    outline: none;
    border-color: #7D1128;
    box-shadow: 0 0 0 3px rgba(125, 17, 40, 0.1);
}

/* Product Meta Table */
.product-meta {
    margin-top: 2rem;
}

.product-meta .table {
    width: 100%;
    margin-bottom: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.product-meta .table tbody tr {
    transition: background-color 0.2s ease;
}

.product-meta .table tbody tr:hover {
    background-color: #f8f9fa;
}

.product-meta .table tbody tr td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border-top: 1px solid #e9ecef;
}

.product-meta .table tbody tr:first-child td {
    border-top: none;
}

.product-meta .table tbody tr td.label {
    width: 35%;
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.product-meta .table tbody tr td.value {
    color: #1a1a1a;
    font-size: 1rem;
}

.product-meta .table tbody tr td.value strong {
    color: #1a1a1a;
    font-weight: 600;
}

.product-meta .table tbody tr td.value ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-meta .table tbody tr td.value ul li {
    margin-bottom: 0.25rem;
}

.product-meta .table tbody tr td.value small {
    display: block;
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Discount Badge */
.discount-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Product Actions */
.product-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.product-actions table {
    width: 100%;
    border-collapse: collapse;
}

.product-actions table tr td {
    padding: 0.5rem;
}

.product-actions table tr td:first-child {
    width: 60%;
}

.product-actions table tr td:last-child {
    width: 40%;
    text-align: right;
}

/* Button Styles */
.btn-custom {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #7D1128 0%, #9a1a3a 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(125, 17, 40, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-custom:hover:not(:disabled) {
    background: linear-gradient(135deg, #9a1a3a 0%, #7D1128 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(125, 17, 40, 0.4);
    color: #ffffff;
}

.btn-custom:active:not(:disabled) {
    transform: translateY(0);
}

.btn-custom:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    width: 100%;
    padding: 1rem 2rem;
    background: #ffffff;
    color: #7D1128;
    border: 2px solid #7D1128;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover:not(:disabled) {
    background: #7D1128;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(125, 17, 40, 0.3);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.wishlist-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* Empty States */
.product-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin: 3rem 0;
}

.product-empty-state .alert {
    border: none;
    border-radius: 12px;
    padding: 2rem;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
}

.product-empty-state .alert strong {
    display: block;
    font-size: 1.5rem;
    color: #856404;
    margin-bottom: 0.5rem;
}

.product-empty-state .alert p {
    color: #856404;
    margin: 0;
    font-size: 1rem;
}

.product-empty-state .btn {
    margin-top: 1.5rem;
    padding: 0.875rem 2rem;
    background: #7D1128;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(125, 17, 40, 0.3);
}

.product-empty-state .btn:hover {
    background: #9a1a3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(125, 17, 40, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.product-out-of-stock {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    margin: 2rem 0;
}

.product-out-of-stock p {
    font-size: 1.125rem;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .product-details-tab {
        position: static;
        margin-bottom: 2rem;
    }

    .product_d_right {
        padding: 1rem 0;
    }

    .product_d_right h1 {
        font-size: 1.75rem;
    }

    .product_d_right h1:first-of-type {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .product_details {
        padding: 2rem 0;
    }

    .product_d_right h1 {
        font-size: 1.5rem;
    }

    .product-select-wrapper {
        padding: 1.25rem;
    }

    .product-meta .table tbody tr td {
        padding: 0.875rem 1rem;
        display: block;
        width: 100%;
        border-top: 1px solid #e9ecef;
    }

    .product-meta .table tbody tr td.label {
        width: 100%;
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
    }

    .product-meta .table tbody tr td.value {
        font-size: 0.95rem;
    }

    .product-actions table tr td {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }

    .product-actions table tr td:last-child {
        text-align: left;
        margin-top: 1rem;
    }

    .single-zoom-thumb ul li a {
        width: 80px;
        height: 80px;
    }

    .breadcrumb_content ul {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .product_d_right h1 {
        font-size: 1.25rem;
    }

    .product-select-wrapper {
        padding: 1rem;
    }

    .product-meta .table tbody tr td {
        padding: 0.75rem;
    }

    .btn-custom,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .single-zoom-thumb ul {
        gap: 0.75rem;
    }

    .single-zoom-thumb ul li a {
        width: 70px;
        height: 70px;
    }
}

/* ===== Animation ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item-wrapper {
    animation: fadeIn 0.4s ease-in;
}

/* ===== Accessibility ===== */
.btn-custom:focus,
.btn-secondary:focus,
.product-select-wrapper select:focus {
    outline: 2px solid #7D1128;
    outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {
    .product-actions,
    .product-select-wrapper,
    .breadcrumb_content {
        display: none;
    }
}

