/* Product Page Redesign */
.product-page-wrapper {
    background: #fff;
    min-height: 100vh;
    padding: 20px 0 60px;
}

.product-breadcrumb {
    padding: 15px 0;
    font-size: 13px;
    color: #666;
}

.product-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.product-breadcrumb a:hover {
    color: #8a7a3f;
}

.product-breadcrumb span {
    margin: 0 8px;
    color: #ccc;
}

.product-main-section {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 32px;
    margin-top: 20px;
    align-items: start;
    min-width: 0;
}

.product-gallery {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
    position: sticky;
    top: 110px;
    align-items: start;
    min-width: 0;
    max-width: 100%;
}

.product-main-image-wrap {
    position: relative;
    min-width: 0;
    max-width: 100%;
}

/* Thumbnail Gallery - Left Side */
.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 100%;
    overflow-y: auto;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
    flex-shrink: 0;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: #8a7a3f;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumbnail.is-video {
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.product-thumb-play {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.product-main-video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #111;
    border: 0;
}

.product-main-image img.is-hidden,
.product-main-video.is-hidden {
    display: none !important;
}

.product-main-image.is-showing-video:hover img {
    transform: none;
}

/* Main Image - Center */
.product-main-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f9f9f9;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-main-image:hover img {
    transform: scale(1.05);
}

/* Product image arrows */
.product-image-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 3;
}

.product-image-nav-btn {
    position: absolute;
    top: 50%;
    margin-top: -22px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    line-height: 1;
    border-radius: 999px;
    border: 1px solid #e5d9c3;
    background: rgba(255, 247, 232, 0.95);
    color: #8a7a3f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(31, 41, 55, 0.12);
    pointer-events: auto;
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
}

.product-image-nav-btn i,
.product-image-nav-btn i:before {
    font-family: fontello;
    font-size: 16px;
    line-height: 1;
    margin: 0;
    width: auto;
    height: auto;
}

.product-image-nav-btn.prev {
    left: 10px;
}

.product-image-nav-btn.next {
    right: 10px;
}

.product-image-nav-btn.next i {
    transform: rotate(180deg);
    display: inline-block;
}

.product-image-nav-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(138, 122, 63, 0.2);
}

.product-image-nav-btn.is-hidden {
    display: none;
}

/* Credit options */
.credit-options {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e5d9c3;
    background: #faf6ed;
}

.credit-title {
    font-size: 14px;
    font-weight: 700;
    color: #8a7a3f;
    margin-bottom: 10px;
}

.credit-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.credit-item {
    background: #fff;
    border: 1px solid #efe2c6;
    border-radius: 10px;
    padding: 8px 6px;
    text-align: center;
}

.credit-months {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
}

.credit-rate {
    display: none;
}

.credit-amount {
    font-size: 12px;
    font-weight: 600;
    color: #8a7a3f;
    margin-top: 4px;
}

/* Product Details - Right Side */
.product-details {
    padding: 0;
    text-align: left;
    min-width: 0;
    max-width: 100%;
}

.product-sale-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.product-sale-badge {
    display: inline-block;
    background: #1e2a3a;
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.product-category-link {
    color: #8a7a3f;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.product-category-link:hover {
    text-decoration: underline;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-price-section {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.product-current-price {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.product-original-price {
    font-size: 18px;
    color: #9ca3af;
    text-decoration: line-through;
}

.product-discount-badge {
    background: linear-gradient(135deg, #8a7a3f 0%, #6f6134 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.product-rating-stars {
    color: #f59e0b;
}

.product-availability {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.availability-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.availability-dot.in-stock {
    background: #22c55e;
}

.availability-dot.out-of-stock {
    background: #ef4444;
}

/* Quantity and Cart */
.product-quantity-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    width: 100%;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e5e5e5;
    border-radius: 30px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
}

.quantity-btn {
    width: 45px;
    height: 45px;
    min-width: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #666;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
}

.quantity-btn:hover {
    background: #f5f5f5;
    color: #8a7a3f;
}

.quantity-input {
    width: 50px;
    height: 45px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    background: #fff;
    padding: 0;
}

.add-to-cart-btn {
    flex: 1;
    height: 50px;
    min-height: 50px;
    padding: 0 18px;
    background: linear-gradient(135deg, #8a7a3f 0%, #6f6134 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    appearance: none;
    -webkit-appearance: none;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(138, 122, 63, 0.3);
    color: #fff;
}

/* Action Buttons */
.product-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    width: 100%;
}

.whatsapp-btn,
.call-btn,
.wishlist-btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    border: none;
}

.whatsapp-btn:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    color: white;
}

.call-btn {
    background: white;
    color: #1f2937;
    border: 2px solid #e5e5e5;
}

.call-btn:hover {
    border-color: #8a7a3f;
    color: #8a7a3f;
}

.wishlist-btn-large {
    background: white;
    color: #ef4444;
    border: 2px solid #fecaca;
}

.wishlist-btn-large:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

.product-info-section {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 32px;
    margin-top: 48px;
    padding: 36px 0 8px;
    border-top: 1px solid #e5d9c3;
    text-align: left;
}

.product-info-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px;
}

.product-info-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 14px;
}

.product-about-text {
    color: #374151;
    font-size: 16px;
    line-height: 1.85;
}

.product-about-empty {
    color: #6b7280;
    margin: 0;
}

.product-about-video {
    margin-top: 24px;
}

.product-video {
    display: block;
    width: 100%;
    max-height: 420px;
    background: #111;
    border-radius: 14px;
    border: 1px solid #e5d9c3;
}

.product-reviews {
    margin-top: 28px;
}

.product-review-item {
    border: 1px solid #e5d9c3;
    border-radius: 14px;
    background: #faf6ed;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.product-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.product-review-name {
    color: #1f2937;
    font-size: 15px;
}

.product-review-stars {
    font-size: 14px;
}

.product-review-text {
    margin: 10px 0 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.product-review-date {
    display: block;
    margin-top: 8px;
    color: #9ca3af;
    font-size: 12px;
}

.product-specs {
    background: #faf6ed;
    border: 1px solid #e5d9c3;
    border-radius: 16px;
    padding: 8px 20px;
}

.product-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px dashed #e5d9c3;
    font-size: 14px;
    color: #6b7280;
}

.product-spec-row:last-child {
    border-bottom: none;
}

.product-spec-row strong {
    color: #1f2937;
    font-weight: 600;
    text-align: right;
}

.product-info-note {
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid #e5d9c3;
    border-radius: 14px;
    background: #fff;
}

.product-info-note-header {
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    text-align: left;
}

.product-info-note-header strong {
    display: block;
    color: #8a7a3f;
    margin: 0;
    font-size: 15px;
}

.product-info-note .accordion-icon {
    color: #8a7a3f;
    flex-shrink: 0;
}

.product-info-note .accordion-content {
    padding: 10px 0 0;
}

.product-info-note p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
}

/* Accordion Sections (legacy) */
.product-accordion {
    border-top: 1px solid #e5e5e5;
    margin-top: 25px;
}

.accordion-item {
    border-bottom: 1px solid #e5e5e5;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    cursor: pointer;
    font-weight: 600;
    color: #1f2937;
    transition: color 0.3s;
}

.accordion-header:hover {
    color: #8a7a3f;
}

.product-info-note .accordion-header {
    padding: 0;
    color: inherit;
}

.accordion-icon {
    font-size: 12px;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 0 18px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    display: none;
}

.accordion-item.active .accordion-content {
    display: block;
}

/* Similar Products */
.similar-products-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.similar-products-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1f2937;
}

.similar-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.similar-product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #e5d9c3;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.similar-product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.similar-product-image {
    aspect-ratio: 1;
    background: #f9f9f9;
    overflow: hidden;
}

.similar-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.similar-product-card:hover .similar-product-image img {
    transform: scale(1.1);
}

.similar-product-info {
    padding: 15px;
    background: #fff;
    color: #1f2937;
    position: relative;
    z-index: 1;
}

.similar-product-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-product-name a {
    color: inherit;
    text-decoration: none;
}

.similar-product-name a:hover {
    color: #8a7a3f;
}

.similar-product-price {
    font-weight: 700;
    color: #8a7a3f;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 991px) {
    .product-page-wrapper {
        overflow-x: hidden;
        padding-top: 8px;
    }

    .product-main-section {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .product-gallery {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        position: static;
        top: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 12px;
    }

    .product-gallery .product-main-image-wrap {
        order: 1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .product-gallery .product-main-image {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        aspect-ratio: 1;
    }

    .product-gallery .product-main-image img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
    }

    .product-image-nav-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        margin-top: -20px;
    }

    .product-gallery .product-thumbnails {
        order: 2;
        flex-direction: row;
        width: 100%;
        max-width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    
    .product-thumbnail {
        flex-shrink: 0;
        width: 64px;
        height: 64px;
        min-width: 64px;
        min-height: 64px;
    }

    .product-details {
        padding: 8px 0 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .product-action-buttons,
    .product-quantity-section {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .whatsapp-btn,
    .call-btn,
    .wishlist-btn-large,
    .add-to-cart-btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .product-info-section {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        gap: 24px;
        margin-top: 28px;
        padding-top: 24px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .similar-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .credit-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: 22px;
    }
    
    .product-current-price {
        font-size: 24px;
    }
    
    .product-quantity-section {
        flex-direction: column;
        gap: 12px;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .add-to-cart-btn {
        width: 100%;
        flex: none;
    }
    
    .whatsapp-btn,
    .call-btn,
    .wishlist-btn-large {
        width: 100%;
    }

    .credit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}