/* Nordic Theme - Product Detail Redesign Styles */

.order-padding {
    background-color: #fafaf8;
    padding: 60px 0;
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--nordic-text-dark);
}

.detail-container.soto-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 992px) {
    .detail-container.soto-detail-layout {
        grid-template-columns: 1fr 1.2fr 0.8fr;
        gap: 30px;
    }
}

/* Left Column: Info & Description */
.detail-column-left {
    display: flex;
    flex-direction: column;
}

.detail-badge-popular {
    background-color: #000000;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    width: fit-content;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
}

.detail-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    color: var(--nordic-text-dark);
    text-transform: uppercase;
}

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

.detail-rating-row .stars-val {
    font-size: 13.5px;
    color: var(--nordic-text-muted);
    font-weight: 500;
}

.detail-rating-row .stars-gold {
    color: var(--nordic-accent-gold);
    font-size: 13px;
}

.detail-subtext-promo {
    font-size: 13px;
    color: var(--nordic-text-muted);
    line-height: 1.5;
    margin-bottom: 30px;
}

.detail-subtext-promo a {
    color: var(--nordic-forest);
    font-weight: 600;
    text-decoration: underline;
}

/* Customize Section */
.detail-customize-section {
    border-top: 1px solid var(--nordic-border-color);
    padding-top: 25px;
    margin-bottom: 30px;
}

.customize-header {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--nordic-text-dark);
    margin-bottom: 15px;
}

.customize-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid var(--nordic-border-color);
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13.5px;
}

.customize-label {
    color: var(--nordic-text-muted);
    font-weight: 500;
}

.customize-value {
    color: var(--nordic-text-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
}

/* Price Box */
.detail-price-box {
    margin-bottom: 30px;
}

.detail-price-box .price-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--nordic-text-muted);
    display: block;
    margin-bottom: 5px;
}

.detail-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--nordic-text-dark);
}

/* Purchase Actions Row */
.detail-purchase-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 15px !important;
    margin-bottom: 25px !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

.detail-purchase-row .add-remove-button {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: #ffffff !important;
    border: 1px solid var(--nordic-border-color) !important;
    border-radius: 50px !important;
    padding: 6px !important;
    height: 52px !important;
    width: 130px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.detail-purchase-row .add-remove-button button {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    border: none !important;
    background-color: transparent !important;
    color: var(--nordic-text-dark) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
}

.detail-purchase-row .add-remove-button button:hover {
    background-color: var(--nordic-forest-light) !important;
    color: var(--nordic-forest) !important;
}

.detail-purchase-row .add-remove-button .quantity {
    width: 30px !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: var(--nordic-text-dark) !important;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    display: inline-block !important;
}

.detail-purchase-row .btn-add-to-cart {
    flex-grow: 1 !important;
    background-color: #ff6f00 !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    height: 52px !important;
    border-radius: 50px !important;
    padding: 0 20px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
}

.detail-purchase-row .btn-add-to-cart:hover {
    background-color: #e65f00 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3) !important;
}

.btn-buy-now {
    width: 100% !important;
    background-color: var(--nordic-forest) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    height: 52px !important;
    border-radius: 50px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    display: block !important;
    margin-top: 10px !important;
    transition: all 0.3s ease !important;
}

.btn-buy-now:hover {
    background-color: var(--nordic-forest-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(30, 70, 32, 0.2) !important;
}

.detail-purchase-row .btn-wishlist-heart {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    border: 1px solid var(--nordic-border-color) !important;
    background-color: #ffffff !important;
    color: var(--nordic-text-dark) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
}

.detail-purchase-row .btn-wishlist-heart:hover {
    border-color: var(--nordic-forest) !important;
    color: var(--nordic-forest) !important;
}

.detail-purchase-row .btn-wishlist-heart i {
    font-size: 18px !important;
    color: var(--nordic-text-dark) !important;
}

.detail-purchase-row .btn-wishlist-heart.active i {
    color: #e53935 !important;
}

.detail-purchase-row .btn-wishlist-heart.active {
    background-color: #ffeef0 !important;
    border-color: #ffcdd2 !important;
    color: #e53935 !important;
}

/* Description */
.detail-description-box {
    border-top: 1px solid var(--nordic-border-color);
    padding-top: 25px;
}

.desc-header {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--nordic-text-dark);
    margin-bottom: 12px;
}

.desc-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--nordic-text-muted);
}

/* Center Column: Main Image */
.detail-column-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
}

.main-image-wrapper {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--nordic-border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1.1;
    width: 100%;
}

.main-image-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Right Column: Gallery & Specs */
.detail-column-right {
    display: flex;
    flex-direction: column;
}

.gallery-horizontal-thumbnails {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 20px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

.gallery-horizontal-thumbnails .gallery-thumb {
    width: 70px !important;
    height: 70px !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    border: 1px solid var(--nordic-border-color) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    aspect-ratio: 1 !important;
}

.gallery-horizontal-thumbnails .gallery-thumb img {
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

.gallery-horizontal-thumbnails .gallery-thumb:hover,
.gallery-horizontal-thumbnails .gallery-thumb.active {
    border-color: var(--nordic-forest) !important;
    box-shadow: none !important;
}

/* Specs Dimensions Card */
.detail-specs-card {
    background-color: #ffffff;
    border: 1px solid var(--nordic-border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: none !important;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--nordic-border-color);
    padding: 12px 0;
    font-size: 13px;
}

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

.spec-title {
    color: var(--nordic-text-muted);
    font-weight: 500;
}

.spec-val {
    color: var(--nordic-text-dark);
    font-weight: 700;
}

/* Dark Mode Overrides */
@media (prefers-color-scheme: dark) {
    .order-padding {
        background-color: #121212 !important;
    }
    .customize-row {
        background-color: #1a1a18 !important;
    }
    .add-remove-button {
        background-color: #1a1a18 !important;
    }
    .btn-wishlist-heart {
        background-color: #1a1a18 !important;
        color: #f5f5f5 !important;
    }
    .main-image-wrapper {
        background-color: #1a1a18 !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    }
    .gallery-thumb {
        background-color: #1a1a18 !important;
    }
    .detail-specs-card {
        background-color: #1a1a18 !important;
    }
}

html.dark-mode .order-padding,
body.dark-mode .order-padding,
html[data-theme="dark"] .order-padding,
body.theme-dark .order-padding {
    background-color: #121212 !important;
}

html.dark-mode .customize-row,
body.dark-mode .customize-row,
html[data-theme="dark"] .customize-row,
body.theme-dark .customize-row {
    background-color: #1a1a18 !important;
}

html.dark-mode .add-remove-button,
body.dark-mode .add-remove-button,
html[data-theme="dark"] .add-remove-button,
body.theme-dark .add-remove-button {
    background-color: #1a1a18 !important;
}

html.dark-mode .btn-wishlist-heart,
body.dark-mode .btn-wishlist-heart,
html[data-theme="dark"] .btn-wishlist-heart,
body.theme-dark .btn-wishlist-heart {
    background-color: #1a1a18 !important;
    color: #f5f5f5 !important;
}

html.dark-mode .main-image-wrapper,
body.dark-mode .main-image-wrapper,
html[data-theme="dark"] .main-image-wrapper,
body.theme-dark .main-image-wrapper {
    background-color: #1a1a18 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

html.dark-mode .gallery-thumb,
body.dark-mode .gallery-thumb,
html[data-theme="dark"] .gallery-thumb,
body.theme-dark .gallery-thumb {
    background-color: #1a1a18 !important;
}

html.dark-mode .detail-specs-card,
body.dark-mode .detail-specs-card,
html[data-theme="dark"] .detail-specs-card,
body.theme-dark .detail-specs-card {
    background-color: #1a1a18 !important;
}
