/**
 * Smable E-shop Styles
 *
 * Styly pro produktove karty, slide-over panel a checkout.
 *
 * @version 1.0
 * @date 2026-01-05
 */

/* ==========================================================================
   PRODUCT CARDS
   ========================================================================== */

.eshop-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-card__image {
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio */
    background: #f5f5f5;
    overflow: hidden;
}

.product-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #00b894;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 1;
}

.product-card__badge--sale {
    background: #e74c3c;
}

.product-card__badge--new {
    background: #3498db;
}

.product-card__badge--variants {
    background: #6c5ce7;
}

.product-card__badge--low-stock {
    background: #fdcb6e;
    color: #2d3436;
}

.product-card__badge--on-order {
    background: #636e72;
}

.product-card__content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3436;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.product-card__description {
    font-size: 14px;
    color: #636e72;
    margin: 0 0 16px 0;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}

.product-card__price {
    font-size: 24px;
    font-weight: 700;
    color: #00b894;
}

.product-card__price-original {
    font-size: 16px;
    color: #b2bec3;
    text-decoration: line-through;
}

.product-card__price-note {
    font-size: 12px;
    color: #636e72;
}

/* ==========================================================================
   VAT TOGGLE
   ========================================================================== */

.eshop-vat-toggle {
    margin-top: 20px;
}

.vat-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.vat-toggle__label {
    font-size: 14px;
    font-weight: 500;
    color: #b2bec3;
    transition: color 0.2s;
}

.vat-toggle__label.is-active {
    color: #2d3436;
    font-weight: 600;
}

.vat-toggle__switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #dfe6e9;
    border-radius: 12px;
    transition: background 0.2s;
}

.vat-toggle__switch.is-on {
    background: #00b894;
}

.vat-toggle__knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.vat-toggle__switch.is-on .vat-toggle__knob {
    transform: translateX(20px);
}

.product-card__actions {
    display: flex;
    gap: 12px;
}

.product-card__btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-card__btn--primary {
    background: #00b894;
    color: white;
}

.product-card__btn--primary:hover {
    background: #00a884;
    transform: translateY(-1px);
}

.product-card__btn--primary:active {
    transform: translateY(0);
}

.product-card__btn--primary:disabled {
    background: #b2bec3;
    cursor: not-allowed;
    transform: none;
}

.product-card__btn--secondary {
    background: #f1f3f4;
    color: #2d3436;
}

.product-card__btn--secondary:hover {
    background: #e4e7e9;
}

/* Loading spinner v tlacitku */
.product-card__btn .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   FILTER CHIPS
   ========================================================================== */

.eshop-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}

.eshop-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 100px;
    background: #fff;
    color: #636e72;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.eshop-filter-chip:hover {
    border-color: #00b894;
    color: #00b894;
}

.eshop-filter-chip.is-active {
    background: #00b894;
    border-color: #00b894;
    color: #fff;
}

.eshop-filter-chip--reset {
    border-color: #e74c3c;
    color: #e74c3c;
}

.eshop-filter-chip--reset:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

.eshop-filter-empty {
    text-align: center;
    padding: 40px 0;
    color: #636e72;
    font-size: 16px;
}

.eshop-filter-empty a {
    color: #00b894;
    font-weight: 600;
    text-decoration: none;
}

.eshop-filter-empty a:hover {
    text-decoration: underline;
}

[x-cloak] {
    display: none !important;
}

@media (max-width: 576px) {
    .eshop-filter-bar {
        gap: 6px;
    }

    .eshop-filter-chip {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* ==========================================================================
   SLIDE-OVER PANEL (Cart)
   ========================================================================== */

.slide-over {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
    pointer-events: none;
}

.slide-over.is-open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
    pointer-events: auto;
}

.slide-over__backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.slide-over__panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 2;
    pointer-events: auto;
}

.slide-over.is-open .slide-over__panel {
    transform: translateX(0);
}

.slide-over__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    flex-shrink: 0;
}

.slide-over__title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3436;
    margin: 0;
}

.slide-over__close {
    width: 36px;
    height: 36px;
    border: none;
    background: #e9ecef;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.slide-over__close:hover {
    background: #dee2e6;
}

.slide-over__close svg {
    width: 20px;
    height: 20px;
    color: #495057;
}

.slide-over__body {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: auto;
    padding: 24px;
    overscroll-behavior: contain;
}

.slide-over__empty {
    text-align: center;
    padding: 48px 24px;
    color: #636e72;
}

.slide-over__empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.slide-over__empty-text {
    font-size: 16px;
    margin-bottom: 24px;
}

/* Cart Items */
.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f3f4;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item__image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.cart-item__details {
    flex: 1;
    min-width: 0;
}

.cart-item__category {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.cart-item__name {
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.cart-item__price {
    font-size: 16px;
    font-weight: 700;
    color: #00b894;
}

.cart-item__quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.cart-item__qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-item__qty-btn:hover {
    background: #f1f3f4;
    border-color: #adb5bd;
}

.cart-item__qty-value {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
}

.cart-item__remove {
    margin-left: auto;
    padding: 4px 8px;
    border: none;
    background: transparent;
    color: #e74c3c;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
}

.cart-item__remove:hover {
    color: #c0392b;
}

/* Related Products in Slide-over */
.slide-over__related {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

.slide-over__related-title {
    font-size: 14px;
    font-weight: 600;
    color: #636e72;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-product {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.related-product:hover {
    background: #e9ecef;
}

.related-product__image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.related-product__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.related-product__info {
    flex: 1;
}

.related-product__name {
    font-size: 13px;
    font-weight: 600;
    color: #2d3436;
    margin: 0 0 4px 0;
}

.related-product__price {
    font-size: 14px;
    font-weight: 700;
    color: #00b894;
}

.related-product__add {
    padding: 8px 12px;
    border: none;
    background: #00b894;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    align-self: center;
    transition: background 0.2s;
}

.related-product__add:hover {
    background: #00a884;
}

/* Slide-over Footer (Totals + Checkout) */
.slide-over__footer {
    padding: 20px 24px;
    border-top: 1px solid #e9ecef;
    background: #fff;
    flex-shrink: 0;
}

.slide-over__totals {
    margin-bottom: 16px;
}

.slide-over__total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #636e72;
}

.slide-over__total-row--grand {
    font-size: 18px;
    font-weight: 700;
    color: #2d3436;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.slide-over__checkout-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    background: #00b894;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.slide-over__checkout-btn:hover {
    background: #00a884;
}

.slide-over__checkout-btn:disabled {
    background: #b2bec3;
    cursor: not-allowed;
}

/* ==========================================================================
   CART BADGE (Header)
   ========================================================================== */

.cart-badge-wrapper {
    position: relative;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badge-pop 0.3s ease;
}

@keyframes badge-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 576px) {
    .eshop-products {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card__content {
        padding: 16px;
    }

    .product-card__title {
        font-size: 16px;
    }

    .product-card__price {
        font-size: 20px;
    }

    .slide-over__panel {
        max-width: 100%;
    }

    .slide-over__body {
        padding: 16px;
    }

    .cart-item {
        gap: 12px;
    }

    .cart-item__image {
        width: 64px;
        height: 64px;
    }
}

/* ==========================================================================
   LOADING OVERLAY
   ========================================================================== */

.eshop-loading {
    position: relative;
}

.eshop-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.eshop-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid #e9ecef;
    border-top-color: #00b894;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 1;
}

/* ==========================================================================
   FLOATING CART BUTTON
   ========================================================================== */

.floating-cart {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9990;
}

.floating-cart__btn {
    width: 60px;
    height: 60px;
    border: none;
    background: #00b894;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 184, 148, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.floating-cart__btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 184, 148, 0.5);
    background: #00a884;
}

.floating-cart__btn:active {
    transform: scale(1.05);
}

.floating-cart__btn svg {
    width: 28px;
    height: 28px;
}

.floating-cart__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    background: #e74c3c;
    color: white;
    font-size: 13px;
    font-weight: 700;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: badge-pop 0.3s ease;
}

/* Skryje floating cart kdyz je slideover otevreny */
.slide-over.is-open ~ .floating-cart {
    opacity: 0;
    pointer-events: none;
}

/* ==========================================================================
   LICENSE UPSELL IN CART
   ========================================================================== */

.slide-over__license-upsell {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e9 100%);
    border: 2px solid #00b894;
    border-radius: 12px;
}

.license-upsell__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.license-upsell__skip {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #636e72;
    transition: all 0.2s;
    flex-shrink: 0;
}

.license-upsell__skip:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #2d3436;
}

.license-upsell__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #00b894;
    border-radius: 10px;
    color: white;
    flex-shrink: 0;
}

.license-upsell__icon svg {
    width: 22px;
    height: 22px;
}

.license-upsell__title {
    font-size: 16px;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 4px 0;
}

.license-upsell__desc {
    font-size: 13px;
    color: #636e72;
    margin: 0;
}

.license-upsell__section {
    margin-bottom: 16px;
}

.license-upsell__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.license-upsell__options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.license-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.license-option:hover {
    border-color: #ced4da;
}

.license-option--selected {
    border-color: #00b894;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

.license-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #00b894;
    flex-shrink: 0;
}

.license-option__content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.license-option__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.license-option__name {
    font-weight: 600;
    color: #2d3436;
    font-size: 14px;
}

.license-option__features {
    font-size: 12px;
    color: #636e72;
}

.license-option__pricing {
    text-align: right;
}

.license-option__price {
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
}

.license-option__price--free {
    color: #00b894;
}

.license-option__original {
    display: block;
    font-size: 11px;
    color: #b2bec3;
    text-decoration: line-through;
}

.license-option__badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: #00b894;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.license-upsell__period {
    display: flex;
    gap: 8px;
}

.period-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.period-option:hover {
    border-color: #ced4da;
}

.period-option--selected {
    border-color: #00b894;
    background: #f0fff4;
}

.period-option input[type="radio"] {
    display: none;
}

.period-option__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.period-option__name {
    font-size: 13px;
    font-weight: 600;
    color: #2d3436;
}

.period-option__savings {
    background: #00b894;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.period-option__note {
    font-size: 11px;
    color: #636e72;
}

.license-upsell__summary {
    background: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.license-upsell__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.license-upsell__total > span {
    font-size: 14px;
    color: #636e72;
}

.license-upsell__total-price {
    text-align: right;
}

.license-upsell__final {
    font-size: 18px;
    font-weight: 700;
    color: #00b894;
}

.license-upsell__saving {
    display: block;
    font-size: 12px;
    color: #636e72;
}

.license-upsell__btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: #00b894;
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.license-upsell__btn:hover {
    background: #00a884;
}

.license-upsell__btn:disabled {
    background: #b2bec3;
    cursor: not-allowed;
}

.license-upsell__btn .spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.license-upsell__note {
    font-size: 12px;
    color: #636e72;
    text-align: center;
    margin: 12px 0 0 0;
}

/* License skipped notice */
.slide-over__license-skipped {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

.slide-over__license-skipped p {
    margin: 0;
    font-size: 13px;
    color: #636e72;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.slide-over__license-skipped button {
    border: none;
    background: none;
    color: #00b894;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
}

.slide-over__license-skipped button:hover {
    text-decoration: underline;
}

@media (max-width: 576px) {
    .floating-cart {
        bottom: 16px;
        right: 16px;
    }

    .floating-cart__btn {
        width: 56px;
        height: 56px;
    }

    .floating-cart__btn svg {
        width: 24px;
        height: 24px;
    }
}

/* ==========================================================================
   ACCESSORIES GRID
   ========================================================================== */

.eshop-products--accessories {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .eshop-products--accessories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .eshop-products--accessories {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CONFIGURATOR SECTION STYLING
   ========================================================================== */

.eshop-section__header {
    position: relative;
}

.eshop-section__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #00b894;
    color: white;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 12px;
}

.eshop-section--alt .eshop-section__step {
    background: #2d3436;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */

.product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.product-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.product-detail__gallery {
    position: sticky;
    top: 100px;
    align-self: start;
}

.product-detail__main-image {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 16px;
}

.product-detail__main-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 400px;
}

.product-detail__thumbnails {
    display: flex;
    gap: 12px;
}

.product-detail__thumb {
    width: 72px;
    height: 72px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    padding: 8px;
    transition: border-color 0.2s;
}

.product-detail__thumb:hover {
    border-color: #ced4da;
}

.product-detail__thumb--active {
    border-color: #00b894;
}

.product-detail__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail__info {
    padding-top: 16px;
}

.product-detail__category {
    font-size: 12px;
    font-weight: 600;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-detail__title {
    font-size: 32px;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.product-detail__description {
    font-size: 16px;
    color: #636e72;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.product-detail__pricing {
    margin-bottom: 16px;
}

.product-detail__price-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.product-detail__price {
    font-size: 32px;
    font-weight: 700;
    color: #00b894;
}

.product-detail__price-label {
    font-size: 14px;
    color: #636e72;
}

.product-detail__price-vat {
    font-size: 15px;
    color: #636e72;
    margin-top: 4px;
}

.product-detail__stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    margin-bottom: 24px;
}

.product-detail__stock--available {
    background: #e8f5e9;
    color: #00b894;
}

.product-detail__stock--unavailable {
    background: #fff3e0;
    color: #f39c12;
}

.product-detail__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.product-detail__quantity {
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.product-detail__qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #f8f9fa;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.product-detail__qty-btn:hover {
    background: #e9ecef;
}

.product-detail__qty-input {
    width: 60px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    -moz-appearance: textfield;
}

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

.product-detail__add-btn {
    flex: 1;
    padding: 14px 32px;
    border: none;
    background: #00b894;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-detail__add-btn:hover {
    background: #00a884;
}

.product-detail__add-btn:disabled {
    background: #b2bec3;
    cursor: not-allowed;
}

.product-detail__features {
    margin-bottom: 32px;
}

.product-detail__features h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3436;
    margin: 0 0 16px 0;
}

.product-detail__features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-detail__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #2d3436;
}

.product-detail__features li svg {
    color: #00b894;
    flex-shrink: 0;
}

.product-detail__delivery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.product-detail__delivery-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #2d3436;
}

.product-detail__delivery-item svg {
    color: #00b894;
    flex-shrink: 0;
}

.product-detail__specs {
    border-top: 1px solid #e9ecef;
    padding-top: 48px;
}

.product-detail__specs h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3436;
    margin: 0 0 24px 0;
}

.product-detail__specs-table {
    width: 100%;
    border-collapse: collapse;
}

.product-detail__specs-table tr {
    border-bottom: 1px solid #e9ecef;
}

.product-detail__specs-table th,
.product-detail__specs-table td {
    padding: 14px 0;
    text-align: left;
    font-size: 14px;
}

.product-detail__specs-table th {
    font-weight: 500;
    color: #636e72;
    width: 40%;
}

.product-detail__specs-table td {
    color: #2d3436;
}

@media (max-width: 900px) {
    .product-detail__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-detail__gallery {
        position: static;
    }
}

@media (max-width: 576px) {
    .product-detail {
        padding: 24px 16px;
    }

    .product-detail__title {
        font-size: 24px;
    }

    .product-detail__price {
        font-size: 28px;
    }

    .product-detail__actions {
        flex-direction: column;
    }

    .product-detail__quantity {
        justify-content: center;
    }
}

/* ==========================================================================
   PRODUCT DETAIL SLIDE-OVER PANEL
   ========================================================================== */

.slide-over__panel--wide {
    max-width: 560px;
}

.detail-panel__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.detail-panel__error {
    text-align: center;
    padding: 48px 24px;
    color: #636e72;
}

.detail-panel__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-panel__gallery {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
}

.detail-panel__main-image {
    text-align: center;
    margin-bottom: 12px;
}

.detail-panel__main-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.detail-panel__thumbs {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.detail-panel__thumb {
    width: 56px;
    height: 56px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    padding: 4px;
    transition: border-color 0.2s;
}

.detail-panel__thumb:hover {
    border-color: #ced4da;
}

.detail-panel__thumb--active {
    border-color: #00b894;
}

.detail-panel__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-panel__info {
    padding: 0 4px;
}

.detail-panel__category {
    font-size: 12px;
    font-weight: 600;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.detail-panel__title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.detail-panel__variants {
    margin-bottom: 20px;
}

.detail-panel__variants-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #636e72;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-panel__variants-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-panel__variant-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.detail-panel__variant-btn:hover {
    border-color: #7c3aed;
    background: #faf5ff;
}

.detail-panel__variant-btn--active {
    border-color: #7c3aed;
    background: #f5f0ff;
}

.detail-panel__variant-name {
    font-size: 14px;
    font-weight: 500;
    color: #2d3436;
}

.detail-panel__variant-price {
    font-size: 13px;
    color: #636e72;
    white-space: nowrap;
    margin-left: 12px;
}

.detail-panel__variant-btn--active .detail-panel__variant-price {
    color: #7c3aed;
    font-weight: 600;
}

.detail-panel__desc {
    font-size: 14px;
    color: #636e72;
    line-height: 1.6;
    margin-bottom: 20px;
}

.detail-panel__full-desc {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-panel__full-desc strong {
    color: #2d3436;
}

.detail-panel__full-desc h3 {
    font-size: 16px;
    font-weight: 700;
    color: #2d3436;
    margin: 20px 0 8px 0;
}

.detail-panel__full-desc h3:first-child {
    margin-top: 0;
}

.detail-panel__full-desc img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px auto;
    display: block;
}

.detail-panel__full-desc p {
    margin: 0 0 12px 0;
}

.detail-panel__full-desc .product-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13px;
}

.detail-panel__full-desc .product-specs-table tr:nth-child(even) {
    background: #edf2f7;
}

.detail-panel__full-desc .product-specs-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.detail-panel__full-desc .product-specs-table td:first-child {
    font-weight: 600;
    color: #2d3436;
    white-space: nowrap;
    width: 140px;
}

.detail-panel__pricing {
    margin-bottom: 12px;
}

.detail-panel__price {
    font-size: 28px;
    font-weight: 700;
    color: #00b894;
}

.detail-panel__price-note {
    font-size: 13px;
    color: #636e72;
    margin-left: 6px;
}

.detail-panel__price-vat {
    font-size: 14px;
    color: #636e72;
    margin-top: 2px;
}

.detail-panel__stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.detail-panel__stock svg {
    vertical-align: -2px;
}

.detail-panel__stock--available {
    background: #e8f5e9;
    color: #00b894;
}

.detail-panel__stock--unavailable {
    background: #fff3e0;
    color: #f39c12;
}

.detail-panel__actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.detail-panel__footer-pricing {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.detail-panel__footer-pricing > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.detail-panel__footer-pricing .detail-panel__price {
    font-size: 24px;
}

.detail-panel__footer-pricing .detail-panel__price-vat {
    font-size: 13px;
    color: #636e72;
    margin: 0;
}

.detail-panel__footer-actions {
    display: flex;
    gap: 12px;
}

.detail-panel__footer-actions .product-detail__quantity {
    flex-shrink: 0;
}

.detail-panel__footer-actions .product-detail__add-btn {
    flex: 1;
}

@media (max-width: 576px) {
    .slide-over__panel--wide {
        max-width: 100%;
    }

    .detail-panel__title {
        font-size: 20px;
    }

    .detail-panel__price {
        font-size: 24px;
    }

    .detail-panel__actions {
        flex-direction: column;
    }
}
