/* Product Details Page Specific Styles */

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    padding: 20px 0;
    font-size: 11px;
    color: #333;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

.breadcrumb-squares {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    margin-right: 15px;
}

.breadcrumb-square {
    width: 8px;
    height: 8px;
    background-color: #000000;
    border: 1px solid #000000;
}

.breadcrumb-text {
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breadcrumb-separator {
    color: #999;
}

/* Main Product Container */
.product-container {
    display: grid;
    grid-template-columns: auto 1fr;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 60px;
    gap: 40px;
    align-items: start;
}

/* Left Side - Product Images */
.product-images {
    display: flex;
    gap: 15px;
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 120px;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: #333;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-image {
    position: relative;
    width: 540px;
    height: 760px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

/* Right Side - Product Details */
.product-info {
    flex: 1;
    max-width: 700px;
    height: 760px; /* Match image height */
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding-right: 10px;
    
    /* Hide scrollbar for Chrome, Safari and Opera */
    &::-webkit-scrollbar {
        width: 0;
        background: transparent;
    }
    
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.product-info-content {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Product Header with Share Button */
.product-header {
    position: relative;
}

.product-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

.product-header h1 {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin: 0;
    flex: 1;
}

/* Share Button and Social Icons - Updated Style */
.share-wrapper {
    position: relative;
}

.share-button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #333;
    transition: opacity 0.3s;
}

.share-button:hover {
    opacity: 0.7;
}

.share-button svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
}

.share-button span {
    display: none; /* Hide the text, only show icon */
}

.social-share-icons {
    position: absolute;
    top: 0;
    right: 30px;
    display: none;
    gap: 16px;
    align-items: center;
    z-index: 100;
}

.social-share-icons.active {
    display: flex;
}

.social-share-icon {
    color: #333;
    text-decoration: none;
    transition: opacity 0.3s;
}

.social-share-icon:hover {
    opacity: 0.6;
}

.social-share-icon svg {
    width: 18px;
    height: 18px;
}

/* Price and Tax */
.price {
    font-size: 16px;
    margin-bottom: 20px;
}

.tax-text {
    font-size: 11px;
    color: #666;
    margin-top: -10px;
    margin-bottom: 20px;
    font-style: italic;
    display: block !important;
}

.product-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

/* Product Options */
.product-options {
    margin-bottom: 10px;
}

.option-group {
    margin-bottom: 35px;
}

.option-group label {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Color Selector */
.color-selector {
    display: flex;
    gap: 10px;
}

.color-option {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.color-option.selected {
    border: 2px solid #333;
}

/* Size Selector - Modified structure */
.size-container {
    position: relative;
}

/* Size label with guide link */
.option-group:nth-child(2) {
    position: relative;
}

.option-group:nth-child(2) label {
    display: inline-block;
    margin-bottom: 10px;
}

.size-guide-link {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
    color: #333;
    line-height: 1;
    padding-top: 2px;
}

.size-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.size-option {
    padding: 12px 24px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.size-option:hover {
    border-color: #000;
}

.size-option.selected {
    background: #000;
    color: white;
    border-color: #000;
}

/* Delivery Method */
.delivery-options {
    display: flex;
    gap: 30px;
    align-items: center;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    white-space: nowrap;
}

.delivery-option input[type="radio"] {
    accent-color: #333;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.delivery-option label {
    font-size: 14px;
    text-transform: none;
    font-weight: normal;
    margin: 0;
    cursor: pointer;
}

/* Buy Button */
.buy-button {
    width: 100%;
    background: #000;
    color: white;
    padding: 18px;
    border: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin: 5px 0;
    transition: background-color 0.3s;
}

.buy-button:hover {
    background-color: #000;
}

/* Collapsible Sections Container */
.collapsible-sections {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Collapsible Sections */
.collapsible-section {
    border-top: 1px solid #eee;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 20px 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.collapsible-header span {
    color: #666;
}

.collapsible-header svg {
    transition: transform 0.3s;
}

.collapsible-section.active .collapsible-header svg {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-bottom: 0;
}

.collapsible-section.active .collapsible-content {
    max-height: 1000px;
    padding-bottom: 20px;
}

/* Product Details Content */
.product-details-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px 20px;
    font-size: 13px;
    line-height: 1.8;
}

.detail-label {
    color: #666;
}

.detail-value {
    color: #333;
}

.set-includes {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
}

/* Contact Stylist Content */
.stylist-content {
    padding: 0 0 20px 0;
}

.stylist-intro {
    font-size: 13px;
    color: #666;
    margin-bottom: 25px;
}

.stylist-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.stylist-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #333;
}

.stylist-feature svg {
    width: 20px;
    height: 20px;
    color: #666;
}

.stylist-contacts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: #f8f8f8;
    border-radius: 25px;
    font-size: 12px;
    color: #333;
}

.contact-item svg {
    width: 16px;
    height: 16px;
}

.working-hours {
    font-size: 11px;
    color: #666;
    margin-top: 20px;
}

/* Delivery & Returns Content */
.delivery-content {
    font-size: 13px;
    color: #666;
}

.no-return-notice {
    margin-bottom: 10px;
}

.policy-link {
    color: #333;
    text-decoration: underline;
    font-size: 13px;
}

/* Size Guide Modal */
.size-guide-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.size-guide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.size-guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.size-guide-header h2 {
    font-size: 20px;
    font-weight: 400;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.unit-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    width: fit-content;
}

.unit-toggle button {
    padding: 8px 20px;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 13px;
}

.unit-toggle button.active {
    background: black;
    color: white;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
}

.size-table th,
.size-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
    font-size: 13px;
}

.size-table th {
    background-color: #f5f5f5;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
}

/* Remove elements from original design */
.stay-updated,
.virtual-consultation,
.social-links,
.tax-info {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .delivery-options {
        gap: 20px;
    }
    
    .size-option {
        padding: 10px 20px;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Override main CSS conflicts */
    body {
        overflow-x: hidden !important;
    }
    
    /* Fix header height and ensure proper spacing */
    header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999 !important;
    }
    
    /* Main content wrapper with proper spacing */
    .product-details-page {
        display: block;
        padding-top: 60px;
        position: relative;
        background: white;
    }
    
    /* Breadcrumb Mobile - Fix alignment */
    .product-details-page .breadcrumb {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
        padding: 42px 20px 10px 20px;
        font-size: 10px;
        background: white;
        margin: 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        transform: none !important;
        text-align: left !important;
    }
    
    .breadcrumb-squares {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
        margin-right: 10px;
        flex-shrink: 0;
    }
    
    .breadcrumb-square {
        width: 6px;
        height: 6px;
    }
    
    .breadcrumb-text {
        display: flex !important;
        align-items: center;
        gap: 5px;
        flex-wrap: wrap;
        flex: 1;
    }
    
    /* Main Container Mobile */
    .product-container {
        grid-template-columns: 1fr;
        padding: 0 0 40px;
        gap: 0;
        position: relative;
        z-index: 5;
    }
    
    /* Product Images Mobile */
    .product-images {
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 0;
    }
    
    .thumbnail-list {
        display: none;
    }
    
    .main-image {
        width: 100vw;
        height: calc(100vw * 1.4);
        max-height: 600px;
        position: relative;
        overflow: hidden;
        touch-action: pan-y pinch-zoom;
    }
    
    .mobile-image-slider {
        display: flex;
        width: 100%;
        height: 100%;
        transition: transform 0.3s ease-out;
    }
    
    .mobile-image-slide {
        min-width: 100%;
        height: 100%;
        position: relative;
    }
    
    .mobile-image-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .image-dots {
        bottom: 15px;
        z-index: 10;
    }
    
    .dot {
        width: 6px;
        height: 6px;
        background-color: rgba(255, 255, 255, 0.7);
    }
    
    .dot.active {
        background-color: white;
        width: 8px;
        height: 8px;
    }
    
    /* Product Info Mobile */
    .product-info {
        padding: 20px;
        height: auto;
        max-width: 100%;
        overflow-y: visible;
    }
    
    .product-info-content {
        min-height: auto;
    }
    
    /* Product Title and Share Mobile */
    .product-title-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 10px;
    }
    
    .product-header h1 {
        font-size: 18px;
        margin: 0;
    }
    
    .share-button {
        padding: 2px;
    }
    
    .share-button svg {
        width: 16px;
        height: 16px;
    }
    
    .social-share-icons {
        right: 25px;
        gap: 12px;
    }
    
    .social-share-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .price {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .tax-text {
        font-size: 10px;
        margin-top: -10px;
        margin-bottom: 15px;
    }
    
    .product-description {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    /* Product Options Mobile */
    .product-options {
        margin-bottom: 15px;
    }
    
    .option-group {
        margin-bottom: 25px;
    }
    
    .option-group:last-child {
        margin-bottom: 15px;
    }
    
    .option-group label {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    /* Color Selector Mobile */
    .color-option {
        width: 35px;
        height: 35px;
    }
    
    /* Size Section Mobile - Keep guide link aligned */
    .option-group:nth-child(2) {
        position: relative;
    }
    
    .size-guide-link {
        position: absolute;
        top: 0;
        right: 0;
        font-size: 10px;
        padding-top: 1px;
    }
    
    .size-selector {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .size-option {
        padding: 10px 18px;
        font-size: 13px;
        flex: 0 0 auto;
    }
    
    /* Delivery Options Mobile */
    .delivery-options {
        display: flex;
        flex-direction: row;
        gap: 20px;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .delivery-option {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
    }
    
    .delivery-option input[type="radio"] {
        width: 16px;
        height: 16px;
        margin: 0;
        flex-shrink: 0;
        position: relative;
        top: -1px;
    }
    
    .delivery-option label {
        font-size: 13px;
        line-height: 1;
        margin: 0;
        display: flex;
        align-items: center;
    }
    
    /* Buy Button Mobile */
    .buy-button {
        padding: 16px;
        font-size: 12px;
        margin: 15px 0 20px 0;
    }
    
    /* Collapsible Sections Mobile */
    .collapsible-header {
        padding: 15px 0;
        font-size: 11px;
    }
    
    .collapsible-content {
        font-size: 12px;
    }
    
    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .detail-label {
        font-weight: 500;
        margin-bottom: 3px;
    }
    
    .detail-value {
        margin-bottom: 15px;
        font-size: 12px;
    }
    
    /* Stylist Features Mobile */
    .stylist-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stylist-contacts {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .contact-item {
        font-size: 11px;
        padding: 10px 12px;
    }
    
    /* Size Guide Modal Mobile */
    .size-guide-modal {
        padding: 10px;
    }
    
    .size-guide-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        padding: 20px;
        width: calc(100% - 20px);
        max-width: 400px;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .size-guide-header {
        margin-bottom: 20px;
        position: sticky;
        top: -20px;
        background: white;
        padding: 10px 0;
        z-index: 1;
    }
    
    .size-guide-header h2 {
        font-size: 18px;
    }
    
    .close-modal {
        font-size: 24px;
        padding: 5px;
    }
    
    .unit-toggle {
        margin-bottom: 15px;
    }
    
    .unit-toggle button {
        padding: 6px 16px;
        font-size: 12px;
    }
    
    .size-table {
        font-size: 12px;
    }
    
    .size-table th,
    .size-table td {
        padding: 8px 6px;
        font-size: 11px;
    }
    
    .size-table th {
        font-size: 10px;
    }
    
    .breadcrumb-text span:last-child:not(.breadcrumb-separator) {
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        vertical-align: bottom;
    }
    
    .swipe-indicator {
        position: absolute;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 10px;
        color: white;
        font-size: 12px;
        opacity: 0;
        animation: swipeHint 3s ease-in-out;
        pointer-events: none;
        z-index: 5;
    }
    
    @keyframes swipeHint {
        0%, 100% { opacity: 0; }
        20%, 80% { opacity: 0.8; }
    }
    
    .swipe-indicator svg {
        width: 20px;
        height: 20px;
        animation: swipeArrow 1.5s ease-in-out infinite;
    }
    
    @keyframes swipeArrow {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(5px); }
    }
}

/* Small Mobile Devices */
@media (max-width: 375px) {
    .product-details-page .breadcrumb {
        font-size: 9px;
        padding: 12px 15px;
    }
    
    .breadcrumb-text {
        font-size: 9px;
    }
    
    .size-option {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .product-header h1 {
        font-size: 16px;
    }
    
    .share-button svg {
        width: 14px;
        height: 14px;
    }
    
    .social-share-icons {
        gap: 10px;
    }
    
    .social-share-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .collapsible-header {
        font-size: 10px;
    }
    
    /* Stack delivery options on very small screens */
    .delivery-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tax-text {
        font-size: 9px;
    }
    
    .size-guide-content {
        padding: 15px;
    }
    
    .size-table th,
    .size-table td {
        padding: 6px 4px;
        font-size: 10px;
    }
}

/* Medium Mobile Devices */
@media (min-width: 376px) and (max-width: 768px) {
    .delivery-options {
        flex-direction: row;
        justify-content: flex-start;
    }
}