/* Unstyled link for product name in related products */
.explore-grid--detail .product-name a {
    color: inherit;
    text-decoration: none;
}
/* Product Detail Page Styles */
.product-detail-page {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 40px 95px;
    min-height: 100vh;
}

/* Navigation Breadcrumb */
.product-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
}

.nav-link {
    font-family: 'TT Norms', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid #333333;
    /* padding-bottom: 2px; */
}

.nav-link:hover {
    color: #191919;
}

.nav-separator {
    font-family: 'TT Norms', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
}

.nav-current {
    font-family: 'TT Norms', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    color: #191919;
}

/* Two Column Layout */
.product-content {
    display: grid;
    grid-template-columns: 615px 1fr;
    gap: 40px;
    align-items: start;
}

/* Add 80px padding under product-content */
.product-content + .available-colors-section {
    padding-top: 80px;
}

.product-image-column {
    width: 615px;
}

.main-image-container {
    width: 615px;
    height: 700px;
    overflow: hidden;
    /* border: 1px solid #333333; */
}

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

/* .product-info-column {
    padding-left: 20px;
} */

.product-title {
    font-family: 'TT Norms', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 44px;
    font-weight: 500;
    text-transform: uppercase;
    text-align: left;
    color: #000000;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.product-description {
    font-family: 'TT Norms', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-align: left;
    color: #374151;
    margin: 0 0 20px 0;
    line-height: 1.6;
    width: 615px;
}

.product-icons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 20px;
    width: 615px;
}

.product-icon {
    width: 50px;
    height: 50px;
    border: 1px solid #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.no-icons {
    font-family: 'TT Norms', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #6B7280;
    font-style: italic;
    margin: 0;
}

/* Details Tabs */
.details-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 32px;
    width: 615px;
}

.details-tab {
    font-family: 'TT Norms', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    background: transparent;
    color: #333333;
    border: none;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 2px solid #333333;
}

.details-tab + .details-tab {
    border-left: 1px solid #333333;
}

.details-tab.active {
    background: #333333;
    color: #FFFFFF;
}

.details-content {
    /* border: 1px solid #333333; */
    border-top: none;
    width: 615px;
}

.tab-panel { display: none; padding-top: 24px; }
.tab-panel.active { display: block; }

.details-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: start;
    color: #374151;
}

.details-list li {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10px 0;
    border-bottom: 1px solid #E5E7EB; /* gray-200 */
}

.details-list li span:first-child {
    color: #374151;
    /* font-weight: 600; */
}

/* Color Selection */
.color-selection {
    margin-top: 24px;
    width: 615px;
}

.color-label {
    font-family: 'TT Norms', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    color: #000000;
    text-align: left;
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.color-multiselect {
    position: relative;
    width: 615px;
    height: 48px;
}

.color-multiselect-trigger {
    width: 100%;
    height: 100%;
    border: none;
    border-bottom: 2px solid #333333;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    cursor: pointer;
    font-family: 'TT Norms', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    color: #333333;
}

.color-selected-text {
    flex: 1;
    text-align: left;
}

.color-dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.color-multiselect-trigger:hover .color-dropdown-arrow {
    transform: rotate(180deg);
}

.color-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FAFAFA;
    border: 1px solid #333333;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.color-dropdown.active {
    display: block;
}

.color-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #E5E7EB;
    transition: background-color 0.2s ease;
}

.color-option:hover {
    background-color: #F9FAFB;
}

.color-option.selected {
    background-color: #E5E7EB;
}

.color-option:last-child {
    border-bottom: none;
}

.color-code-text {
    font-family: 'TT Norms', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    color: #000000;
}

/* Color Codes Table */
.color-codes-section {
    margin-top: 32px;
    width: 615px;
}

.color-codes-title {
    font-family: 'TT Norms', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    color: #000000;
    margin: 0 0 16px 0;
}

.color-codes-table {
    border: 1px solid #333333;
    width: 100%;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #333333;
    color: #FFFFFF;
}

.header-cell {
    font-family: 'TT Norms', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 12px 16px;
    text-align: left;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #E5E7EB;
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    padding: 12px 16px;
    display: flex;
    align-items: center;
}

.color-code-cell {
    font-family: 'TT Norms', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    color: #000000;
}

.image-cell {
    justify-content: center;
}

.color-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #D1D5DB;
}

/* Sample Controls */
.sample-controls {
    display: flex;
    align-items: center;
    gap: 43px;
    margin-top: 50px;
    width: 615px;
}

.add-sample-btn {
    width: 290px;
    height: 50px;
    background-color: #000000;
    color: #FFFFFF;
    border: none;
    font-family: 'TT Norms', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-sample-btn:hover {
    background-color: #333333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 168px;
    height: 50px;
    border: 1px solid #000000;
    padding: 4px;
    box-sizing: border-box;
    gap: 25px;
}

.quantity-btn {
    width: 38px;
    height: 38px;
    background-color: #000000;
    color: #FFFFFF;
    border: none;
    font-family: 'TT Norms', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: #333333;
}

.quantity-number {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'TT Norms', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: #000000;
    background-color: transparent;
}

/* Available Colors Section */
.available-colors-section {
    width: 100%;
    /* padding-left: 95px;
    padding-right: 95px; */
}

.available-colors-title {
    font-family: 'Collingar', 'Times New Roman', serif;
    font-size: 40px;
    text-transform: uppercase;
    color: #000000;
    text-align: left;
    margin: 0;
}

.available-colors-grid {
    padding-top: 40px;
    width: 1300px;
    display: grid;
    grid-template-columns: repeat(6, 188px);
    gap: 24px;
}

.available-color-card {
    position: relative;
    width: 188px;
    height: 130px;
    overflow: hidden;
    cursor: pointer;
}

.available-color-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.available-color-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(55, 65, 81, 0); /* transparent initially */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.available-color-card:hover .available-color-overlay {
    background-color: rgba(51, 51, 51, 0.6); /* gray-800 like */
}

.available-color-code {
    font-family: 'Collingar', 'Times New Roman', serif;
    font-size: 24px;
    color: #FFFFFF;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.available-color-card:hover .available-color-code {
    opacity: 1;
}

/* Detail explore grid spacing and fixed height */
.explore-grid--detail {
    margin-top: 40px;
    /* height: 1440px; */
}

/* Auto width for related product cards and slides */
.explore-swiper .swiper-slide {
    width: auto;
}

.explore-grid--detail .swiper-slide {
    width: auto;
}

.explore-grid--detail .product-card {
    width: auto;
}

/* Stagger product-visual heights like product cards */
.detail-explore-swiper .swiper-slide .product-visual {
    display: flex;
    align-items: flex-end;
    /* justify-content: center; */
    height: 450px;
}

.detail-explore-swiper .swiper-slide .product-main-image {
    width: 496px;
    object-fit: cover;
    border: 1px solid #000000;
}

/* 2nd card: 100% height */
.detail-explore-swiper .swiper-slide:nth-child(3n+2) .product-main-image {
    height: 100%;
}

/* 1st card: 45% height */
.detail-explore-swiper .swiper-slide:nth-child(3n+1) .product-main-image {
    height: 75%;
}

/* 3rd card: 65% height */
.detail-explore-swiper .swiper-slide:nth-child(3n+3) .product-main-image {
    height: 85%;
}
/* You May Also Like header (mirrors explore-products style) */
.also-like-section {
    padding-top: 120px;
    padding-left: 95px;
    padding-right: 95px;
}

.also-like-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.also-like-arrows {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.also-like-arrow {
    width: 40px;
    height: 40px;
}

.also-like-title {
    font-family: 'Collingar', 'Times New Roman', serif;
    font-size: 40px;
    text-transform: uppercase;
    color: #000000;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-detail-page {
        padding: 20px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .product-navigation {
        margin-bottom: 20px;
        gap: 6px;
    }
    
    .nav-link,
    .nav-separator,
    .nav-current {
        font-size: 14px;
    }
    
    .product-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-image-column {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }
    
    .main-image-container {
        width: 100%;
        height: 300px;
    }
    
    .product-title {
        font-size: 28px;
        margin-bottom: 12px;
        width: 100%;
    }
    
    .product-description {
        font-size: 14px;
        margin-bottom: 16px;
        width: 100%;
    }
    
    .product-icons-container {
        gap: 8px;
        margin-top: 16px;
        width: 100%;
    }
    
    .product-icon {
        width: 40px;
        height: 40px;
    }
    
    .details-tabs {
        width: 100%;
        margin-top: 20px;
    }
    
    .details-tab {
        font-size: 16px;
        padding: 12px 14px;
    }
    
    .details-content {
        width: 100%;
    }
    
    .details-list li {
        padding: 8px 0;
        font-size: 14px;
    }
    
    .color-selection {
        width: 100%;
        margin-top: 20px;
    }
    
    .color-label {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .color-multiselect {
        width: 100%;
        height: 50px;
    }
    
    .color-multiselect-trigger {
        font-size: 14px;
        padding: 0 12px;
    }
    
    .color-codes-section {
        width: 100%;
        margin-top: 20px;
    }
    
    .color-codes-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .color-image {
        width: 50px;
        height: 50px;
    }
    
    .sample-controls {
        width: 100%;
        gap: 12px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 30px;
    }
    
    .add-sample-btn {
        flex: 1;
        height: 40px;
        font-size: 16px;
        margin-right: 12px;
    }
    
    .quantity-controls {
        width: 120px;
        height: 40px;
        gap: 15px;
        flex-shrink: 0;
    }
    
    .quantity-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .quantity-number {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    /* Available Colors Section */
    .available-colors-section {
        padding-top: 40px;
    }
    
    .available-colors-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .available-colors-grid {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding-top: 20px;
    }
    
    .available-color-card {
        width: 100%;
        height: 100px;
    }
    
    /* Also Like Section */
    .also-like-section {
        padding-top: 60px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .also-like-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .also-like-row {
        gap: 16px;
    }
    
    .also-like-arrow {
        width: 32px;
        height: 32px;
    }
    
    /* Explore Grid */
    /* .explore-grid--detail {
        max-width: 380px;
        margin: 0 auto;
    } */
    
    /* .explore-grid--detail .swiper-slide {
        width: 180px;
    }
    
    .explore-grid--detail .product-card {
        width: 100%;
        height: auto;
    } */
}

@media (max-width: 480px) {
    .product-detail-page {
        padding: 15px;
    }
    
    .product-navigation {
        margin-bottom: 15px;
        gap: 4px;
    }
    
    .nav-link,
    .nav-separator,
    .nav-current {
        font-size: 12px;
    }
    
    .product-image-column {
        max-width: 320px;
    }
    
    .main-image-container {
        height: 250px;
    }
    
    .product-title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .product-description {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .product-icons-container {
        gap: 6px;
        margin-top: 12px;
    }
    
    .product-icon {
        width: 35px;
        height: 35px;
    }
    
    .details-tab {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .details-list li {
        padding: 6px 0;
        font-size: 13px;
    }
    
    .color-label {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .color-multiselect {
        height: 45px;
    }
    
    .color-multiselect-trigger {
        font-size: 13px;
        padding: 0 10px;
    }
    
    .color-codes-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .color-image {
        width: 40px;
        height: 40px;
    }
    
    .sample-controls {
        gap: 10px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 25px;
    }
    
    .add-sample-btn {
        flex: 1;
        height: 36px;
        font-size: 14px;
        margin-right: 10px;
    }
    
    .quantity-controls {
        width: 100px;
        height: 36px;
        gap: 12px;
        flex-shrink: 0;
    }
    
    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .quantity-number {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    /* Available Colors Section */
    .available-colors-section {
        padding-top: 30px;
    }
    
    .available-colors-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .available-colors-grid {
        max-width: 320px;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding-top: 15px;
    }
    
    .available-color-card {
        height: 80px;
    }
    
    /* Also Like Section */
    .also-like-section {
        padding-top: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .also-like-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .also-like-row {
        gap: 12px;
    }
    
    .also-like-arrow {
        width: 28px;
        height: 28px;
    }
    
    /* Explore Grid
    .explore-grid--detail {
        max-width: 320px;
    }
    
    .explore-grid--detail .swiper-slide {
        width: 150px;
    } */
}