/* ============================================
   Stromsparen24 - WooCommerce Shop Styling
   Modern Minimalist Design
   ============================================ */

/* ============================================
   Hide default WooCommerce UI elements
   ============================================ */
.shop-page .woocommerce-result-count,
.shop-page .woocommerce-ordering,
.shop-page .woocommerce-breadcrumb,
.shop-page .woocommerce-notices-wrapper {
    display: none !important;
}

/* ============================================
   Page Wrapper
   ============================================ */
.shop-page {
    background: #f8fafc;
    min-height: 100vh;
}


/* ============================================
   Mobile-only elements — hidden on desktop
   ============================================ */
.filter-fab,
.filter-mobile-overlay,
.filter-mobile-panel { display: none; }

/* ============================================
   Filter Bar — Unified Pill (Desktop)
   ============================================ */
.shop-filters {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 0;
    position: sticky;
    top: 68px;
    z-index: 100;
    transition: top .35s cubic-bezier(.4,0,.2,1);
}

.filter-form {
    width: 100%;
}

/* Force Inter font on all filter elements (overrides Windows system font) */
.filter-bar,
.filter-bar input,
.filter-bar select,
.filter-bar button,
.filter-bar * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Single unified pill */
.filter-bar {
    display: flex;
    align-items: stretch;
    height: 50px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.filter-bar:focus-within {
    border-color: #0066FF;
    box-shadow: 0 4px 28px rgba(0, 102, 255, 0.13);
}

/* Mobile toggle: hidden on desktop */
.filter-mobile-toggle {
    display: none;
}

/* Desktop: filter-advanced-wrap is transparent to flex layout */
.filter-advanced-wrap {
    display: contents;
}

/* Search — left section */
.filter-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    border: none;
    background: transparent;
    border-radius: 0;
    height: auto;
    flex: 1 1 150px;
    min-width: 0;
    transition: background 0.15s;
}

.filter-search:focus-within {
    background: rgba(0, 102, 255, 0.03);
}

.filter-search svg {
    color: #94a3b8;
    flex-shrink: 0;
}

.filter-search input {
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    width: 100%;
    min-width: 0;
}

.filter-search input::placeholder {
    color: #94a3b8;
}

/* Vertical dividers between sections */
.filter-sep {
    width: 1px;
    background: #e2e8f0;
    align-self: stretch;
    flex-shrink: 0;
    margin: 0;
}

/* Dropdowns — flush inside pill, no individual border */
.filter-select {
    border: none;
    border-radius: 0;
    height: 100%;
    padding: 0 2.25rem 0 1rem;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.7rem center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.15s;
}

.filter-select:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.filter-select:focus {
    outline: none;
    background-color: rgba(0, 102, 255, 0.04);
}

/* Price range */
.filter-price {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1rem;
    flex-shrink: 0;
}

.filter-price input {
    width: 72px;
    border: none;
    background: transparent;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    -moz-appearance: textfield;
    appearance: textfield;
    outline: none;
    padding: 0;
}

.filter-price input::-webkit-outer-spin-button,
.filter-price input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.filter-price input::placeholder {
    color: #94a3b8;
}

.filter-price-sep {
    color: #cbd5e1;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Submit — right blue cap */
.filter-submit {
    background: #0066FF;
    border: none;
    border-radius: 0;
    width: 54px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-shrink: 0;
    color: #fff;
    transition: background 0.2s;
}

.filter-submit:hover {
    background: #0052cc;
}

/* "Suchen" label: hidden on desktop, shown on mobile */
.filter-submit-label {
    display: none;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Active filter tags */
.active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    background: #EBF2FF;
    color: #0066FF;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
}

.filter-tag a {
    color: #0066FF;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
}

.filter-tag a:hover {
    color: #0052cc;
}

.filter-reset {
    font-size: 0.8rem;
    color: #64748b;
    text-decoration: underline;
    cursor: pointer;
}

.filter-reset:hover {
    color: #374151;
}

/* ============================================
   Results Bar
   ============================================ */
.shop-products {
    padding: 2rem 0 3rem;
}

.shop-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.results-count {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.results-count strong {
    color: #1e293b;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0.25rem;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 3px;
}

.view-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.15s;
}

.view-btn.active,
.view-btn:hover {
    background: #fff;
    color: #0066FF;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ============================================
   Product Grid — 3 Columns
   ============================================ */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* List view override */
.shop-products-grid.view-list {
    grid-template-columns: 1fr;
}

/* ============================================
   Product Card
   ============================================ */
.shop-product-card {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #e2e8f0;
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.shop-product-card:hover {
    border-color: #0066FF;
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.12);
    transform: translateY(-3px);
}

.product-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Product Image */
.product-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #ffffff;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.shop-product-card:hover .product-image {
    transform: scale(1.04);
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #cbd5e1;
}

/* Badges (Sale / Ausverkauft) */
.product-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.badge-sale {
    background: #dc2626;
    color: #fff;
}

.badge-outofstock {
    background: #64748b;
    color: #fff;
}

/* Product Info */
.product-info {
    padding: 1.1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.4rem;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-excerpt {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0066FF;
    line-height: 1;
}

/* WooCommerce overrides the price with spans */
.product-price .woocommerce-Price-amount,
.product-price bdi {
    color: #0066FF;
    font-weight: 700;
}

.product-price ins {
    text-decoration: none;
}

.product-price del {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 400;
    margin-right: 0.3rem;
}

.product-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0066FF;
    white-space: nowrap;
    transition: gap 0.2s;
}

.shop-product-card:hover .product-cta {
    gap: 0.5rem;
}

/* ============================================
   List View
   ============================================ */
.shop-products-grid.view-list .shop-product-card {
    display: block;
}

.shop-products-grid.view-list .product-card-link {
    flex-direction: row;
    align-items: stretch;
}

.shop-products-grid.view-list .product-image-wrap {
    width: 240px;
    flex-shrink: 0;
    aspect-ratio: unset;
}

.shop-products-grid.view-list .product-info {
    padding: 1.5rem;
}

.shop-products-grid.view-list .product-title {
    font-size: 1.1rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.shop-products-grid.view-list .product-excerpt {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* ============================================
   No Products
   ============================================ */
.no-products {
    text-align: center;
    padding: 5rem 1rem;
    color: #64748b;
}

.no-products-icon {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #94a3b8;
}

.no-products h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.no-products p {
    margin-bottom: 1.5rem;
}

/* ============================================
   Pagination
   ============================================ */
.shop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 38px;
    height: 38px;
    padding: 0 0.75rem;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    background: #fff;
    transition: all 0.15s;
}

.page-link:hover {
    border-color: #0066FF;
    color: #0066FF;
}

.page-link.current {
    background: #0066FF;
    border-color: #0066FF;
    color: #fff;
    cursor: default;
}

.page-prev,
.page-next {
    font-weight: 600;
}

.page-dots {
    color: #94a3b8;
    padding: 0 0.25rem;
}

/* ============================================
   Trust/Feature Bar
   ============================================ */
.shop-features {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: #EBF2FF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #0066FF;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.feature-text strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.feature-text span {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.3;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .shop-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Tablet ≤768px ---- */
@media (max-width: 768px) {
    /* Filter bar: NOT sticky on mobile — stays at top of page */
    .shop-filters {
        position: relative;
        top: auto;
        background: #fff;
        padding: 0.625rem 0;
        z-index: 10;
    }

    /* Hide the inline filter bar on mobile */
    .filter-bar {
        display: none;
    }

    /* ── Floating Filter FAB (mobile only) ── */
    .filter-fab {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 24px;
        right: 20px;
        width: 52px;
        height: 52px;
        background: #0066FF;
        color: #fff;
        border: none;
        border-radius: 50%;
        box-shadow: 0 4px 16px rgba(0, 102, 255, 0.35), 0 2px 6px rgba(0,0,0,.1);
        cursor: pointer;
        z-index: 190;
        transition: transform .2s, box-shadow .2s;
    }
    .filter-fab:active {
        transform: scale(0.92);
    }
    .filter-fab-badge {
        position: absolute;
        top: -2px;
        right: -2px;
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        background: #ef4444;
        color: #fff;
        border-radius: 10px;
        font-size: 11px;
        font-weight: 700;
        line-height: 20px;
        text-align: center;
    }
    .filter-fab-badge:empty { display: none; }

    /* ── Mobile Filter Overlay ── */
    .filter-mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 195;
    }
    .filter-mobile-overlay.open {
        display: block;
    }

    .filter-mobile-panel {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-radius: 20px 20px 0 0;
        padding: 0;
        z-index: 196;
        max-height: 85vh;
        overflow-y: auto;
        box-shadow: 0 -4px 24px rgba(0,0,0,.12);
        transform: translateY(100%);
        transition: transform .3s cubic-bezier(.4,0,.2,1);
    }
    .filter-mobile-panel.open {
        display: block;
        transform: translateY(0);
    }

    .filter-mobile-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px 14px;
        border-bottom: 1px solid #e5e7eb;
        position: sticky;
        top: 0;
        background: #fff;
        border-radius: 20px 20px 0 0;
    }
    .filter-mobile-panel-header h3 {
        font-size: 17px;
        font-weight: 700;
        color: #1f2937;
        margin: 0;
    }
    .filter-mobile-close {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: #f3f4f6;
        border-radius: 50%;
        cursor: pointer;
        color: #6b7280;
    }

    .filter-mobile-body {
        padding: 16px 20px 24px;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .filter-mobile-body label {
        font-size: 13px;
        font-weight: 600;
        color: #6b7280;
        margin-bottom: 4px;
        display: block;
    }

    .filter-mobile-body .filter-select,
    .filter-mobile-body select {
        width: 100%;
        border: 1.5px solid #e2e8f0;
        border-radius: 10px;
        height: 46px;
        padding: 0 2rem 0 0.875rem;
        background-color: #fff;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.7rem center;
        font-size: 0.9rem;
        color: #374151;
        -webkit-appearance: none;
        appearance: none;
    }

    .filter-mobile-body input[type="text"],
    .filter-mobile-body input[type="number"] {
        width: 100%;
        border: 1.5px solid #e2e8f0;
        border-radius: 10px;
        height: 46px;
        padding: 0 0.875rem;
        font-size: 0.9rem;
        color: #374151;
    }

    .filter-mobile-body .filter-price-row {
        display: flex;
        gap: 10px;
        align-items: center;
    }
    .filter-mobile-body .filter-price-row input {
        flex: 1;
    }
    .filter-mobile-body .filter-price-row span {
        color: #94a3b8;
        font-weight: 500;
    }

    .filter-mobile-actions {
        padding: 12px 20px 20px;
        display: flex;
        gap: 10px;
        border-top: 1px solid #e5e7eb;
    }
    .filter-mobile-reset {
        flex: 1;
        padding: 14px;
        background: #f3f4f6;
        border: none;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 600;
        color: #6b7280;
        cursor: pointer;
    }
    .filter-mobile-apply {
        flex: 2;
        padding: 14px;
        background: #0066FF;
        border: none;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 600;
        color: #fff;
        cursor: pointer;
    }

    /* Hide inline filter toggle (replaced by FAB) */
    .filter-mobile-toggle { display: none; }
    .filter-sep { display: none; }
    .filter-submit-label { display: inline; }

    /* Active filters on mobile */
    .active-filters {
        flex-wrap: wrap;
        padding: 0 0.5rem;
    }

    /* 2-column product grid */
    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }

    /* List view: stack vertically */
    .shop-products-grid.view-list .product-card-link {
        flex-direction: column;
    }

    .shop-products-grid.view-list .product-image-wrap {
        width: 100%;
        aspect-ratio: 4/3;
    }

    /* Trust bar: 2 columns */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Products section: tighter padding */
    .shop-products {
        padding: 1.25rem 0 2rem;
    }
}

/* ---- Mobile ≤480px ---- */
@media (max-width: 480px) {
    /* 2 columns on phone (compact shop feel) */
    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }

    /* Hide excerpt on tiny cards — too cramped */
    .product-excerpt {
        display: none;
    }

    /* Tighter card padding */
    .product-info {
        padding: 0.75rem 0.875rem 0.875rem;
        gap: 0.3rem;
    }

    .product-title {
        font-size: 0.85rem;
    }

    .product-price {
        font-size: 0.95rem;
    }

    .product-cta {
        font-size: 0.75rem;
    }

    /* Results bar: stacked */
    .shop-results-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    /* Trust bar: 1 column */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    /* Pagination: smaller buttons */
    .page-link {
        min-width: 34px;
        height: 34px;
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }
}

/* ============================================
   Mini-Cart Slide-in Panel
   ============================================ */
.sh-minicart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.sh-minicart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.sh-minicart {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 92vw;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
}
.sh-minicart.open {
    transform: translateX(0);
}

.sh-minicart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1.5px solid #f1f5f9;
    flex-shrink: 0;
}
.sh-minicart-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}
.sh-minicart-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 10px;
    cursor: pointer;
    color: #64748b;
    transition: background 0.15s, color 0.15s;
}
.sh-minicart-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.sh-minicart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.sh-minicart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sh-minicart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    transition: border-color 0.15s;
}
.sh-minicart-item:hover {
    border-color: #e2e8f0;
}

.sh-minicart-thumb {
    flex-shrink: 0;
}
.sh-minicart-thumb img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.sh-minicart-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}
.sh-minicart-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sh-minicart-qty {
    font-size: 0.8rem;
    color: #64748b;
}

.sh-minicart-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    padding: 3rem 1rem;
    margin: 0;
}

.sh-minicart-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1.5px solid #f1f5f9;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #fff;
}

.sh-minicart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}
.sh-minicart-total-amount {
    color: #0066FF;
    font-size: 1.1rem;
}

.sh-minicart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
}
.sh-minicart-btn:hover {
    transform: translateY(-1px);
}

.sh-minicart-btn--cart {
    background: #f1f5f9;
    color: #374151;
    border: 1.5px solid #e2e8f0;
}
.sh-minicart-btn--cart:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.sh-minicart-btn--checkout {
    background: #0066FF;
    color: #fff;
}
.sh-minicart-btn--checkout:hover {
    background: #0052cc;
}

/* Mini-cart mobile responsive */
@media (max-width: 480px) {
    .sh-minicart {
        width: 100%;
        max-width: 100vw;
    }
    .sh-minicart-header {
        padding: 1rem 1.25rem;
    }
    .sh-minicart-body {
        padding: 0.875rem 1.25rem;
    }
    .sh-minicart-footer {
        padding: 1rem 1.25rem;
        /* safe area for bottom notch on phones */
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }
    .sh-minicart-thumb img {
        width: 56px;
        height: 56px;
    }
    .sh-minicart-item {
        padding: 0.625rem;
        gap: 0.75rem;
    }
}

/* ============================================
   WooCommerce Cart & Checkout — Modern Styling
   ============================================ */

/* ---- Shared Layout ---- */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account .site-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title,
.woocommerce-account .entry-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

/* ---- Notices ---- */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.woocommerce .woocommerce-message {
    background: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.woocommerce .woocommerce-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.woocommerce .woocommerce-error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-error::before {
    display: none;
}

/* ---- Cart Table ---- */
.woocommerce table.shop_table {
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    width: 100%;
}

.woocommerce table.shop_table th {
    background: #f8fafc;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1rem 1.25rem;
    border-bottom: 1.5px solid #e2e8f0;
}

.woocommerce table.shop_table td {
    padding: 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #374151;
}

.woocommerce table.shop_table tr:last-child td {
    border-bottom: none;
}

/* Cart product image */
.woocommerce table.shop_table .product-thumbnail img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

/* Cart product name */
.woocommerce table.shop_table .product-name a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.woocommerce table.shop_table .product-name a:hover {
    color: #0066FF;
}

/* Quantity input */
.woocommerce .quantity .qty {
    width: 60px;
    height: 40px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}

.woocommerce .quantity .qty:focus {
    border-color: #0066FF;
}

/* Remove button */
.woocommerce a.remove {
    color: #94a3b8 !important;
    font-size: 1.3rem;
    font-weight: 400;
    transition: color 0.15s;
    text-decoration: none;
}

.woocommerce a.remove:hover {
    color: #ef4444 !important;
    background: none !important;
}

/* Coupon — completely hidden (no coupon codes) */
.woocommerce .coupon,
.woocommerce .woocommerce-form-coupon-toggle,
.woocommerce .checkout_coupon,
.woocommerce-cart .coupon {
    display: none !important;
}

/* ---- Buttons ---- */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce .button {
    background: #0066FF !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.1s !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.woocommerce .button:hover {
    background: #0052cc !important;
    transform: translateY(-1px) !important;
}

.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt {
    background: #0066FF !important;
}

.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover {
    background: #0052cc !important;
}

/* Secondary / outline buttons */
.woocommerce .cart .button:not(.checkout-button):not(.alt),
.woocommerce .coupon .button {
    background: #f8fafc !important;
    color: #374151 !important;
    border: 1.5px solid #e2e8f0 !important;
}

.woocommerce .cart .button:not(.checkout-button):not(.alt):hover,
.woocommerce .coupon .button:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    transform: none !important;
}

/* ---- Cart Totals ---- */
.woocommerce .cart_totals,
.woocommerce .cart-collaterals {
    margin-top: 2rem;
}

.woocommerce .cart_totals h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.woocommerce .cart_totals table {
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.woocommerce .cart_totals th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    padding: 1rem 1.25rem;
    width: 40%;
}

.woocommerce .cart_totals td {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    color: #0f172a;
}

.woocommerce .cart_totals .order-total th,
.woocommerce .cart_totals .order-total td {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    border-top: 2px solid #e2e8f0;
}

.woocommerce .cart_totals .order-total .woocommerce-Price-amount {
    color: #0066FF;
    font-size: 1.2rem;
}

/* Proceed to checkout button */
.woocommerce .wc-proceed-to-checkout .checkout-button {
    width: 100%;
    padding: 1rem !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
    margin-top: 1rem;
}

/* ---- Checkout Form ---- */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3,
.woocommerce-checkout #order_review_heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.woocommerce-checkout .form-row {
    margin-bottom: 1rem;
}

.woocommerce-checkout .form-row label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
    display: block;
}

.woocommerce-checkout .form-row label .required {
    color: #ef4444;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .select2-container .select2-selection--single {
    width: 100%;
    height: 46px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 1rem;
    font-size: 0.9rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
    border-color: #0066FF;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.woocommerce-checkout .form-row textarea {
    height: auto;
    padding: 0.875rem 1rem;
    min-height: 80px;
    resize: vertical;
}

/* Select2 override */
.woocommerce-checkout .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0;
    color: #0f172a;
    line-height: 46px;
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 8px;
}

/* ---- Order Review (right column) ---- */
.woocommerce-checkout #order_review {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.woocommerce-checkout #order_review table.shop_table {
    border: none;
    border-radius: 0;
}

.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td {
    padding: 0.75rem 0;
}

/* ---- Payment Methods ---- */
.woocommerce-checkout #payment {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1.5px solid #e2e8f0;
}

.woocommerce-checkout #payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    border: none;
}

.woocommerce-checkout #payment ul.payment_methods li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.15s;
}

.woocommerce-checkout #payment ul.payment_methods li:hover,
.woocommerce-checkout #payment ul.payment_methods li.active {
    border-color: #0066FF;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.woocommerce-checkout #payment ul.payment_methods li img {
    max-height: 28px;
    width: auto;
}

.woocommerce-checkout #payment .payment_box {
    padding: 0.75rem 0 0;
    background: transparent;
    color: #64748b;
    font-size: 0.85rem;
}

.woocommerce-checkout #payment .payment_box::before {
    display: none;
}

/* Place Order button */
.woocommerce-checkout #place_order {
    width: 100%;
    padding: 1rem !important;
    font-size: 1.05rem !important;
    border-radius: 12px !important;
    margin-top: 0.5rem;
    letter-spacing: 0.01em;
}

/* ---- Privacy / Terms ---- */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin: 1rem 0;
    font-size: 0.85rem;
    color: #64748b;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a {
    color: #0066FF;
    text-decoration: underline;
}

/* ---- Order Received / Thank You ---- */
.woocommerce-order-received .woocommerce-thankyou-order-received {
    font-size: 1.1rem;
    font-weight: 600;
    color: #065f46;
    background: #ecfdf5;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* ---- Shipping Methods ---- */
.woocommerce .woocommerce-shipping-methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce .woocommerce-shipping-methods li {
    padding: 0.25rem 0;
}

.woocommerce .woocommerce-shipping-methods li label {
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
}

/* ---- Shipping Calculator ---- */
.woocommerce .shipping-calculator-button {
    color: #0066FF !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}

.woocommerce .shipping-calculator-button:hover {
    color: #0052cc !important;
    text-decoration: underline;
}

.woocommerce .shipping-calculator-form {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.woocommerce .shipping-calculator-form p {
    margin-bottom: 0.75rem;
}

.woocommerce .shipping-calculator-form label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    display: block;
    margin-bottom: 4px;
}

.woocommerce .shipping-calculator-form select,
.woocommerce .shipping-calculator-form input.input-text {
    width: 100%;
    height: 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
    font-family: 'Inter', -apple-system, sans-serif;
}

.woocommerce .shipping-calculator-form select:focus,
.woocommerce .shipping-calculator-form input.input-text:focus {
    border-color: #0066FF;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.08);
}

.woocommerce .shipping-calculator-form .select2-container .select2-selection--single {
    height: 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.woocommerce .shipping-calculator-form .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0 0.75rem;
    line-height: 42px;
    color: #0f172a;
    font-size: 0.875rem;
}

.woocommerce .shipping-calculator-form .button {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
}

/* Shipping note text */
.woocommerce .cart_totals .woocommerce-shipping-destination {
    font-size: 0.8rem;
    color: #64748b;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Tax amount small text */
.woocommerce .cart_totals .includes_tax,
.woocommerce .cart_totals .tax-rate {
    font-size: 0.8rem;
    color: #64748b;
}

/* ---- Cart Layout: 2 columns on desktop ---- */
@media (min-width: 769px) {
    .woocommerce-cart .woocommerce {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 2rem;
        align-items: start;
    }
    .woocommerce-cart .woocommerce > .woocommerce-notices-wrapper {
        grid-column: 1 / -1;
    }
    .woocommerce-cart .cart-collaterals {
        margin-top: 0;
    }
}

/* ---- Checkout Layout: 2 columns on desktop ---- */
@media (min-width: 769px) {
    .woocommerce-checkout .woocommerce {
        display: grid;
        grid-template-columns: 1fr 420px;
        gap: 2rem;
        align-items: start;
    }
    .woocommerce-checkout .woocommerce > .woocommerce-notices-wrapper,
    .woocommerce-checkout .woocommerce > .woocommerce-form-login-toggle,
    .woocommerce-checkout .woocommerce > .woocommerce-form-coupon-toggle {
        grid-column: 1 / -1;
    }
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        grid-column: 2;
    }
    .woocommerce-checkout #customer_details {
        grid-column: 1;
        grid-row: 2;
    }
    .woocommerce-checkout #order_review_heading {
        grid-row: 2;
    }
    .woocommerce-checkout #order_review {
        grid-row: 3;
        position: sticky;
        top: 90px;
    }
}

/* ---- Responsive Cart/Checkout ---- */
@media (max-width: 768px) {
    .woocommerce-cart .site-main,
    .woocommerce-checkout .site-main {
        padding: 1.25rem 1rem 3rem;
    }

    .woocommerce table.shop_table {
        border-radius: 12px;
    }

    .woocommerce table.shop_table th,
    .woocommerce table.shop_table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .woocommerce table.shop_table .product-thumbnail img {
        width: 56px;
        height: 56px;
    }

    /* Responsive cart table */
    .woocommerce table.shop_table.cart {
        display: block;
    }

    .woocommerce table.shop_table.cart thead {
        display: none;
    }

    .woocommerce table.shop_table.cart tbody,
    .woocommerce table.shop_table.cart tr,
    .woocommerce table.shop_table.cart td {
        display: block;
        width: 100%;
    }

    .woocommerce table.shop_table.cart tr {
        padding: 1rem;
        border-bottom: 1px solid #f1f5f9;
        position: relative;
    }

    .woocommerce table.shop_table.cart td {
        border: none;
        padding: 0.25rem 0;
    }

    .woocommerce table.shop_table.cart td.product-remove {
        position: absolute;
        top: 1rem;
        right: 0.5rem;
        width: auto;
    }

    .woocommerce table.shop_table.cart td.actions {
        padding-top: 1rem;
    }

    .woocommerce-checkout #payment {
        padding: 1rem;
        border-radius: 12px;
    }

    .woocommerce-checkout #order_review {
        padding: 1rem;
        border-radius: 12px;
    }
}
