@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.product-page {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 40px;
    font-family: 'Inter', sans-serif;
    color: #000;
}

.product-top {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

/* Media Gallery */
.product-media {
    display: flex;
    gap: 30px;
}

.media-thumbs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 70px;
}

.thumb-item {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.thumb-item.active,
.thumb-item:hover {
    opacity: 1;
}

.thumb-item img {
    width: 70px;
    height: 90px;
    object-fit: cover;
    background: #fcfcfc;
}

.media-main {
    flex-grow: 1;
    background: #f9f9f9;
}

.main-image-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-wrapper img {
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 800px;
}

/* Purchase Information */
.product-purchase {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.product-season {
    font-size: 13px;
    color: #767676;
    margin-bottom: 8px;
}

.product-brand {
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
}

.product-title {
    font-size: 14px;
    font-weight: 400;
    color: #767676;
    margin: 0 0 20px 0;
}

.product-price {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #000;
}

.product-price .woocommerce-Price-amount {
    font-weight: 600;
}

/* Variation Swatches & Size Buttons */
.product-visual-options {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.product-stock-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c2410c;
    /* Orange 700 */
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
}

.stock-dot {
    width: 8px;
    height: 8px;
    background-color: #f97316;
    border-radius: 50%;
}

.product-size-tools {
    margin-bottom: 15px;
}

.size-guide-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #000;
    font-size: 13px;
    font-weight: 600;
}

.size-guide-trigger:hover {
    text-decoration: underline;
}

/* Custom Variation Button Styles */
.custom-variations-container {
    margin-bottom: 30px;
}

.custom-variations {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.custom-variation-btn {
    flex: 1;
    min-width: 65px;
    padding: 12px 10px;
    background: #ebebeb;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.custom-variation-btn:hover:not(.out-of-stock):not(.selected) {
    background: #dcdcdc;
}

.custom-variation-btn.selected {
    border-color: #000;
    background: #fff;
}

.custom-variation-btn.out-of-stock {
    background: #fff;
    color: #999;
    cursor: not-allowed;
    border-color: #dcdcdc;
    position: relative;
    overflow: hidden;
}

.custom-variation-btn.out-of-stock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 1px;
    background-color: #999;
    transform: rotate(-15deg);
}

.single_add_to_cart_button.disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

/* Actions Section */
.product-actions-container {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    align-items: flex-end;
}

.product-actions-container form.cart {
    flex-grow: 1;
    display: flex;
    margin-bottom: 0 !important;
}

.product-actions-container .single_add_to_cart_button {
    background-color: #1a1a1a !important;
    color: #fff !important;
    width: 100% !important;
    padding: 17px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    border-radius: 4px !important;
    border: none !important;
    transition: background 0.2s !important;
    margin: 0 !important;
}

.product-actions-container .single_add_to_cart_button:hover {
    background-color: #333 !important;
}

.product-actions-container .added_to_cart {
    display: none !important;
}

.wishlist-overlay-container {
    display: flex;
}

.wishlist-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 1px solid #e5e5e5;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: border-color 0.2s;
    color: #000;
}

.wishlist-btn:hover {
    border-color: #000;
}

.product-secondary-action {
    margin-top: 15px;
}

.avatar-button {
    width: 100%;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    border: 1px solid #e5e5e5;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.avatar-button:hover {
    border-color: #000;
}

.product-helper-note {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    font-size: 12px;
    color: #666;
}

.helper-avatars {
    display: flex;
}

.helper-avatars img {
    border-radius: 50%;
    border: 2px solid #fff;
    margin-right: -12px;
}

/* Breadcrumbs Section */
.product-breadcrumbs {
    padding: 40px 0;
    border-top: 1px solid #f0f0f0;
}

.woocommerce-breadcrumb {
    font-size: 13px;
    color: #999;
}

.woocommerce-breadcrumb a {
    color: #444;
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    color: #000;
}

/* Details Section */
.product-details {
    border-top: 1px solid #000;
    padding-top: 0;
}

.details-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid #f0f0f0;
}

.details-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    padding: 40px 0;
}

.detail-header {
    margin-bottom: 30px;
}

.detail-season {
    font-size: 13px;
    color: #767676;
    display: block;
    margin-bottom: 5px;
}

.detail-brand {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.detail-subtitle {
    font-size: 14px;
    color: #444;
    margin: 0;
}

.detail-section h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000;
}

.detail-section p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.highlights-list ul {
    list-style: disc;
    padding-left: 18px;
    margin: 0 0 20px 0;
}

.highlights-list li {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 5px;
}

.product-id-note {
    color: #999 !important;
    font-size: 13px !important;
}

/* UI Overrides for WooCommerce */
.swatch-wrapper,
.variable-item {
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: all 0.2s;
}

.variable-item.selected {
    border-color: #000 !important;
    background: #f9f9f9;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-page {
        padding: 0 20px;
    }

    .product-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .product-media {
        flex-direction: column-reverse;
    }

    .media-thumbs {
        flex-direction: row;
        overflow-x: auto;
    }

    .media-thumbs img {
        width: 60px;
        height: 80px;
    }

    .product-brand {
        font-size: 32px;
    }
}

/* Modern Toast Alerts */
.elgora-toast-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
    /* Let clicks pass through empty space */
}

.elgora-toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 450px;
    background: #1a1a1a;
    color: #fff;
    padding: 16px 20px;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: auto;
    /* Re-enable clicks for the toast itself */
    border-left: 4px solid #333;
}

.elgora-toast.toast-error {
    background: #fff;
    color: #000;
    border-left: 4px solid #ef4444;
    /* Red accent */
}

.elgora-toast.toast-success {
    background: #fff;
    color: #000;
    border-left: 4px solid #22c55e;
    /* Green accent */
}

.elgora-toast .toast-close {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.5;
    margin-left: 20px;
    padding: 0;
    display: flex;
    transition: opacity 0.2s;
}

.elgora-toast .toast-close:hover {
    opacity: 1;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .elgora-toast-container {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }

    .elgora-toast {
        min-width: unset;
        width: 100%;
    }
}