/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    padding: 14px 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-light);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-gray);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--text-dark);
    font-weight: 500;
}

.breadcrumb svg {
    color: var(--text-light);
    flex-shrink: 0;
}

/* ============================================
   PRODUCT MAIN SECTION
   ============================================ */
.product-main {
    padding: 40px 0;
    background: var(--bg-white);
}

.product-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* ============================================
   PRODUCT GALLERY
   ============================================ */
.product-gallery {
    position: sticky;
    top: 20px;
}

.main-image {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-light);
    margin-bottom: 16px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-row {
    display: flex;
    gap: 12px;
}

.thumbnail {
    width: 72px;
    height: 72px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-light);
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary);
}

/* ============================================
   PRODUCT INFO
   ============================================ */
.product-info {
    padding-top: 4px;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 12px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.stars {
    display: flex;
    gap: 2px;
}

.rating-score {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.rating-count {
    color: var(--text-light);
    font-size: 14px;
}

.reviews-link {
    color: var(--text-gray);
    font-size: 14px;
    transition: var(--transition);
    margin-left: 4px;
}

.reviews-link:hover {
    color: var(--primary);
}

/* Price */
.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.original-price {
    font-size: 18px;
    color: var(--text-light);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* Stock */
.stock-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.stock-status.in-stock {
    color: #2e7d32;
}

.stock-status.out-of-stock {
    color: #c62828;
}

/* Options */
.product-option {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.product-option label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 50px;
}

/* Color Swatches */
.color-swatches {
    display: flex;
    gap: 10px;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.color-swatch:hover {
    outline-color: var(--border-color);
}

.color-swatch.active {
    outline-color: var(--primary);
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
}

.qty-input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Action Buttons */
.product-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.add-to-cart-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
}

.wishlist-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: none;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.wishlist-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Product Trust Mini-Badges */
.product-trust {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--primary);
}

.trust-item div {
    display: flex;
    flex-direction: column;
}

.trust-item strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.trust-item span {
    font-size: 11px;
    color: var(--text-light);
}

/* Product Meta */
.product-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-gray);
}

.meta-item a {
    color: var(--primary);
    font-weight: 500;
}

.meta-item a:hover {
    text-decoration: underline;
}

.meta-item strong {
    color: var(--text-dark);
}

/* Product Tags */
.product-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tags-label {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}

.tag {
    padding: 5px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-gray);
    transition: var(--transition);
}

.tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(194, 24, 91, 0.05);
}

/* ============================================
   PRODUCT CONTENT (TABS + RELATED)
   ============================================ */
.product-content {
    padding: 0 0 60px;
    background: var(--bg-white);
}

.product-content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

/* Tabs */
.product-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-btn {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-gray);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--text-dark);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* Tab Panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.tab-panel h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.features-title {
    margin-bottom: 12px !important;
}

.features-list {
    list-style: none;
    margin-bottom: 16px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

.features-list li svg {
    flex-shrink: 0;
}

.read-more-link {
    display: inline-block;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.read-more-link:hover {
    text-decoration: underline;
}

/* ============================================
   RELATED PRODUCTS
   ============================================ */
.related-products {
    position: sticky;
    top: 20px;
}

.related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.related-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    font-style: italic;
}

.view-all-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.view-all-link:hover {
    text-decoration: underline;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.related-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    transition: var(--transition);
}

.related-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.related-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
    margin-bottom: 10px;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.stars-sm {
    display: flex;
    gap: 1px;
}

.old-price {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
}

.related-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.related-cart-btn {
    display: inline-block;
    padding: 8px 20px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    background: none;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.related-cart-btn:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   CUSTOMER REVIEWS
   ============================================ */
.customer-reviews {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.reviews-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.reviews-average {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars-large {
    display: flex;
    gap: 2px;
}

.average-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.reviews-based {
    font-size: 14px;
    color: var(--text-gray);
}

.write-review-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary);
    border-radius: 25px;
    color: var(--primary);
    background: none;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.write-review-btn:hover {
    background: var(--primary);
    color: white;
}

/* Rating Bars */
.rating-bars {
    max-width: 500px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.bar-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    min-width: 55px;
    white-space: nowrap;
}

.bar-track {
    flex: 1;
    height: 10px;
    background: var(--bg-light);
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.bar-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 24px;
    text-align: right;
}

/* ============================================
   PRODUCT PAGE RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1024px) {
    .product-main-grid {
        gap: 30px;
    }

    .product-content-grid {
        grid-template-columns: 1fr 280px;
        gap: 30px;
    }

    .product-title {
        font-size: 24px;
    }

    .current-price {
        font-size: 28px;
    }
}

/* ============================================
   PRODUCT PAGE RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: nowrap;
        gap: 10px;
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        flex-shrink: 0;
    }

    .search-bar {
        display: none !important;
    }

    .header-icons {
        display: flex !important;
        flex-shrink: 0;
    }

    .icon-btn {
        padding: 6px;
    }

    .icon-label {
        display: none;
    }

    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }

    .mobile-search-btn,
    .mobile-hamburger {
        display: flex !important;
    }

    .main-nav {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }

    .product-main {
        padding: 20px 0;
    }

    .product-main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-gallery {
        position: static;
    }

    .main-image {
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .thumbnail-row {
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .thumbnail {
        width: 64px;
        height: 64px;
        flex-shrink: 0;
        border-radius: 8px;
    }

    .product-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .current-price {
        font-size: 26px;
    }

    .original-price {
        font-size: 16px;
    }

    .stock-status {
        margin-bottom: 18px;
    }

    .product-option {
        gap: 10px;
        margin-bottom: 16px;
    }

    .product-option label {
        font-size: 14px;
        min-width: auto;
    }

    .color-swatches {
        gap: 8px;
        flex-wrap: wrap;
    }

    .color-swatch {
        width: 36px;
        height: 36px;
    }

    .size-options {
        flex-wrap: wrap;
    }

    .product-actions {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .add-to-cart-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 15px;
        border-radius: 12px;
    }

    .wishlist-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        border-radius: 12px;
    }

    .product-trust {
        flex-direction: column;
        gap: 12px;
        padding: 16px 0;
    }

    .trust-item {
        gap: 10px;
    }

    .trust-item svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .product-content {
        padding: 0 0 40px;
    }

    .product-content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-right-col {
        order: 2;
    }

    .related-products {
        position: static;
    }

    .product-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 0;
    }

    .product-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        padding: 12px 16px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .tab-panel p {
        font-size: 14px;
        line-height: 1.7;
    }

    .related-header h3 {
        font-size: 18px;
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .related-card {
        padding: 10px;
        border-radius: 10px;
    }

    .related-card h4 {
        font-size: 12px;
    }

    .related-price {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .customer-reviews {
        margin-top: 30px;
        padding-top: 30px;
    }

    .reviews-heading {
        font-size: 20px;
    }

    .product-meta {
        gap: 12px;
    }

    .product-tags {
        gap: 6px;
    }

    .tag {
        padding: 4px 12px;
        font-size: 11px;
    }

    .breadcrumb {
        padding: 10px 0;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .header-container {
        gap: 8px;
    }

    .logo img {
        height: 30px;
    }

    .mobile-header-actions {
        gap: 8px;
    }

    .product-main {
        padding: 16px 0;
    }

    .product-title {
        font-size: 18px;
    }

    .current-price {
        font-size: 24px;
    }

    .original-price {
        font-size: 14px;
    }

    .thumbnail {
        width: 56px;
        height: 56px;
    }

    .product-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .discount-badge {
        font-size: 12px;
        padding: 3px 10px;
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .related-card {
        padding: 8px;
    }

    .related-card h4 {
        font-size: 11px;
    }

    .related-price {
        font-size: 13px;
    }

    .qty-btn {
        width: 44px;
        height: 44px;
    }

    .qty-input {
        width: 52px;
        height: 44px;
        font-size: 16px;
    }

    .add-to-cart-btn {
        padding: 16px;
        position: sticky;
        bottom: 0;
        z-index: 50;
        border-radius: 0;
        margin: 0 -15px;
        width: calc(100% + 30px);
    }
}
