/**
 * Antonia Scrubs Single Product Styles
 * Cherokee/Royce style product page
 * 
 * @package Understrap
 */

/* ========== Product Layout ========== */
.antonia-single-product {
    background: #fff;
    padding: 30px 40px 60px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .antonia-single-product {
        padding: 20px;
    }
}

/* ========== Gallery ========== */
.product-gallery {
    display: flex;
    gap: 15px;
}

.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80px;
    flex-shrink: 0;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: #333;
}

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

.thumb-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.thumb-video .video-icon {
    color: #666;
    margin-bottom: 5px;
}

.thumb-video span {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
}

.gallery-main {
    flex: 1;
    background: #f9f9f9;
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 576px) {
    .product-gallery {
        flex-direction: column-reverse;
    }
    
    .gallery-thumbnails {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
    }
    
    .thumb-item {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
}

/* ========== Product Info ========== */
.product-info {
    padding-top: 10px;
}

/* Breadcrumbs */
.product-breadcrumbs {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.product-breadcrumbs a {
    color: #666;
    text-decoration: underline;
}

.product-breadcrumbs a:hover {
    color: #333;
}

/* Brand */
.product-brand {
    font-size: 12px;
    color: #0e5f76;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Title */
.product-info .product-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    font-family: "Montserrat", sans-serif;
    line-height: 1.3;
}

/* Price */
.product-info .product-price {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

/* Rating */
.product-info .product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.product-info .product-rating .stars {
    display: flex;
    gap: 2px;
}

.product-info .product-rating .star {
    font-size: 14px;
    color: #c4a07a;
}

.product-info .product-rating .star.empty {
    color: #ddd;
}

.product-info .review-link {
    font-size: 13px;
    color: #666;
    text-decoration: underline;
}

.product-info .review-link:hover {
    color: #333;
}

/* ========== Product Options ========== */
.product-option {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.label-text {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.selected-value {
    font-size: 12px;
    color: #666;
}

.required-text {
    font-size: 12px;
    color: #c4a07a;
}

.option-price {
    font-size: 13px;
    color: #333;
    margin-bottom: 12px;
}

.size-guide-link {
    margin-left: auto;
    font-size: 12px;
    color: #666;
    text-decoration: underline;
}

.size-guide-link:hover {
    color: #333;
}

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

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.active {
    border-color: #333;
}

.color-swatch.small {
    width: 18px;
    height: 18px;
}

/* Clearance Badge */
.clearance-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.clearance-label {
    font-size: 13px;
    font-weight: 600;
    color: #c4a07a;
}

.clearance-price {
    font-size: 13px;
    font-weight: 600;
    color: #c4a07a;
}

.clearance-savings {
    font-size: 12px;
    color: #666;
}

.clearance-colors {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

/* Size Buttons */
.size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-btn {
    min-width: 50px;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    font-family: "Montserrat", sans-serif;
}

.size-btn:hover {
    border-color: #333;
}

.size-btn.active {
    background: #333;
    border-color: #333;
    color: #fff;
}

.inseam-buttons .size-btn {
    min-width: 80px;
}

/* ========== Add to Cart ========== */
.add-to-cart-wrap {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
}

.qty-btn {
    width: 40px;
    height: 44px;
    background: #fff;
    border: none;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #f5f5f5;
}

.qty-input {
    width: 50px;
    height: 44px;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    text-align: center;
    font-size: 14px;
    font-family: "Montserrat", sans-serif;
}

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

.add-to-cart-btn {
    flex: 1;
    padding: 12px 30px;
    background: #333;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    font-family: "Montserrat", sans-serif;
}

.add-to-cart-btn:hover {
    background: #000;
}

@media (max-width: 576px) {
    .add-to-cart-wrap {
        flex-direction: column;
    }
    
    .quantity-selector {
        justify-content: center;
    }
}

/* ========== Shipping Info ========== */
.shipping-info {
    margin-bottom: 25px;
}

.shipping-info .info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.shipping-info .info-item svg {
    color: #666;
    flex-shrink: 0;
}

.shipping-info .info-item a {
    font-size: 13px;
    color: #333;
    text-decoration: underline;
}

.shipping-info .info-item a:hover {
    color: #0e5f76;
}

/* ========== Description ========== */
.product-description {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.product-description p {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin: 0;
    font-family: "Georgia", serif;
    font-style: italic;
}

/* ========== Accordions ========== */
.product-accordions {
    border-top: 1px solid #e0e0e0;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.accordion-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 0;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
}

.accordion-toggle svg {
    transition: transform 0.3s;
    color: #c4a07a;
}

.accordion-toggle.active svg {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 0 0 20px 0;
}

.accordion-content.active {
    display: block;
}

.accordion-content ul {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: disc;
}

.accordion-content li {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

/* ========== Wear It With Section ========== */
.wear-it-with-section {
    max-width: 1400px;
    margin: 60px auto 0;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
}

.wear-it-with-section .section-title {
    font-size: 24px;
    font-weight: 400;
    color: #333;
    margin: 0 0 30px 0;
    font-family: "Georgia", serif;
    font-style: italic;
}

/* Wear Item Row */
.wear-item {
    display: grid;
    grid-template-columns: 150px 1fr 280px;
    gap: 30px;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    align-items: start;
}

.wear-item:last-child {
    border-bottom: 1px solid #e0e0e0;
}

@media (max-width: 992px) {
    .wear-item {
        grid-template-columns: 120px 1fr;
        gap: 20px;
    }
    
    .wear-item-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .wear-item {
        grid-template-columns: 1fr;
    }
    
    .wear-item-image {
        max-width: 200px;
    }
}

/* Wear Item Image */
.wear-item-image {
    background: #f9f9f9;
}

.wear-item-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Wear Item Info */
.wear-item-info {
    padding-top: 5px;
}

.wear-item-brand {
    font-size: 12px;
    color: #0e5f76;
    font-weight: 500;
    margin-bottom: 5px;
}

.wear-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    font-family: "Montserrat", sans-serif;
    line-height: 1.3;
}

.wear-item-title a {
    color: inherit;
    text-decoration: none;
}

.wear-item-title a:hover {
    color: #0e5f76;
}

.wear-item-price {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.wear-item-description {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 20px 0;
}

.wear-item-color {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.wear-item-color .color-label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
}

.wear-item-color .color-text {
    font-size: 12px;
    color: #666;
}

.wear-item-price-small {
    font-size: 13px;
    color: #333;
    margin-bottom: 10px;
}

.wear-item-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wear-item-swatches .color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.wear-item-swatches .color-swatch:hover {
    transform: scale(1.1);
}

.wear-item-swatches .color-swatch.active {
    border-color: #333;
}

/* Wear Item Actions */
.wear-item-actions {
    padding-top: 5px;
}

.wear-size-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.wear-size-label .size-label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
}

.wear-size-label .size-text {
    font-size: 12px;
    color: #666;
}

.wear-size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.wear-size-buttons .size-btn {
    min-width: 45px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    font-size: 11px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    font-family: "Montserrat", sans-serif;
}

.wear-size-buttons .size-btn:hover {
    border-color: #333;
}

.wear-size-buttons .size-btn.active {
    background: #333;
    border-color: #333;
    color: #fff;
}

.select-color-btn {
    width: 100%;
    padding: 14px 20px;
    background: #333;
    border: none;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    font-family: "Montserrat", sans-serif;
}

.select-color-btn:hover {
    background: #000;
}
