/* ===== Shop Theme - CSS Variables (Luxury) ===== */
:root {
    --shop-primary: #000000;
    --shop-primary-dark: #000000;
    --shop-primary-light: #f5f5f5;
    --shop-accent: #b8860b;
    --shop-bg: #ffffff;
    --shop-text: #111111;
    --shop-muted: #777777;
    --shop-border: #e0e0e0;
    --shop-card-shadow: none;
    --shop-card-shadow-hover: none;
    --shop-radius: 0px;
    --shop-transition: 0.5s ease;
}

/* ===== Dark Theme ===== */
[data-theme="dark"] {
    --shop-bg: #0a0a0a;
    --shop-text: #e8e8e8;
    --shop-muted: #999999;
    --shop-border: rgba(255, 255, 255, 0.12);
    --shop-primary-light: rgba(255, 255, 255, 0.06);
    --shop-card-shadow: none;
    --shop-card-shadow-hover: none;
}
[data-theme="dark"] .shop-navbar {
    background: #000 !important;
}
[data-theme="dark"] .shop-navbar.scrolled {
    box-shadow: none;
}
[data-theme="dark"] .shop-navbar .navbar-brand { color: #fff; }
[data-theme="dark"] .shop-navbar .nav-link { color: #aaa; }
[data-theme="dark"] .shop-navbar .nav-link:hover { color: #b8860b; }
[data-theme="dark"] .shop-navbar .navbar-toggler { border-color: rgba(255,255,255,0.2); }
[data-theme="dark"] .shop-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
[data-theme="dark"] .shop-navbar .navbar-collapse { background: #111; }
[data-theme="dark"] .shop-navbar .dropdown-menu {
    background: #111;
    border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .shop-navbar .dropdown-item { color: #999; }
[data-theme="dark"] .shop-navbar .dropdown-item:hover { background: rgba(255,255,255,0.05); color: #b8860b; }
[data-theme="dark"] .dropdown-divider { border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .shop-hero {
    background: #0a0a0a;
}
[data-theme="dark"] .product-card,
[data-theme="dark"] .category-banner,
[data-theme="dark"] .feature-card {
    background: #111;
    border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .product-card:hover { border-color: rgba(184,134,11,0.3); }
[data-theme="dark"] .cart-dropdown { background: #111; }
[data-theme="dark"] .cart-dropdown-line:hover { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .cart-dropdown .bg-light { background: #0a0a0a !important; }
[data-theme="dark"] .shop-footer {
    background: #000 !important;
}
[data-theme="dark"] .bg-light { background-color: #111 !important; }
[data-theme="dark"] .text-dark, [data-theme="dark"] .text-body { color: #e8e8e8 !important; }
[data-theme="dark"] .form-control {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e8e8e8;
}
[data-theme="dark"] .card { background: #111; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .card-body.bg-light { background: #111 !important; border-color: rgba(255,255,255,0.1) !important; }
[data-theme="dark"] hr { border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .btn-outline-secondary { color: #999; border-color: rgba(255,255,255,0.12); }
[data-theme="dark"] .btn-outline-secondary:hover { background: rgba(255,255,255,0.06); color: #b8860b; }
[data-theme="dark"] .shop-toast { background: rgba(255,255,255,0.12); }
[data-theme="dark"] .checkout-input { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); color: #e8e8e8; }
[data-theme="dark"] .checkout-address-card { border-color: rgba(255,255,255,0.12); }
[data-theme="dark"] .basket-item-card { background: #111; }
[data-theme="dark"] .login-register .card { background: #111; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .category-count { background: rgba(184,134,11,0.15); color: #b8860b; }
[data-theme="dark"] .editorial-quote { color: #e8e8e8; }
[data-theme="dark"] .luxury-newsletter input { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.15); color: #e8e8e8; }
[data-theme="dark"] .luxury-newsletter input:focus { border-color: #b8860b; }

/* Theme toggle */
.shop-theme-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}
.shop-theme-toggle:hover { color: #b8860b; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--shop-text);
    background: var(--shop-bg);
    overflow-x: hidden;
    font-weight: 300;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 400;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out both;
}
.animate-fade-up-delay-1 { animation-delay: 0.15s; }
.animate-fade-up-delay-2 { animation-delay: 0.3s; }
.animate-fade-up-delay-3 { animation-delay: 0.45s; }
.animate-fade-up-delay-4 { animation-delay: 0.6s; }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Navbar (Luxury Black) ===== */
.shop-navbar {
    background: #000;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0.5rem 0;
    z-index: 1030;
    transition: all 0.5s ease;
}
.shop-navbar.scrolled {
    padding: 0.35rem 0;
}

.shop-navbar .navbar-brand {
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.shop-navbar .nav-link {
    color: rgba(255,255,255,0.65);
    font-weight: 400;
    font-size: 0.78rem;
    padding: 0.5rem 0.9rem;
    transition: color var(--shop-transition);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
}
.shop-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: #b8860b;
    transition: all var(--shop-transition);
    transform: translateX(-50%);
}
.shop-navbar .nav-link:hover {
    color: #b8860b;
}
.shop-navbar .nav-link:hover::after {
    width: 80%;
}
.shop-navbar .dropdown-toggle::after {
    display: block;
    border: none;
    margin: 0;
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: #b8860b;
    transition: all var(--shop-transition);
    transform: translateX(-50%);
    content: '';
}
.shop-navbar .dropdown-toggle:hover::after {
    width: 80%;
}

/* Split navigation layout */
.navbar-nav-left,
.navbar-nav-right {
    display: flex;
    align-items: center;
}
.navbar-brand-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
@media (max-width: 991.98px) {
    .navbar-brand-center {
        position: static;
        transform: none;
    }
}

.nav-search-form .form-control {
    border-radius: 0;
    border-color: rgba(255,255,255,0.15);
    font-size: 0.78rem;
    background: transparent;
    color: #fff;
}
.nav-search-form .form-control::placeholder { color: rgba(255,255,255,0.4); }
.nav-search-form .btn {
    border-radius: 0;
    border-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
}
.nav-search-form .btn:hover { color: #b8860b; }

.cart-link .bi-bag { font-size: 1.1rem; }
.cart-badge {
    position: absolute;
    top: 2px;
    right: -4px;
    background: #b8860b;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ===== Hero (Luxury Panoramic) ===== */
.shop-hero {
    position: relative;
    overflow: hidden;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    background: #111;
}
.shop-hero-bg {
    position: absolute;
    inset: 0;
    background: url('/static/img/hero.jpg') center/cover no-repeat;
}
.shop-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    z-index: 1;
}
.shop-hero .container {
    position: relative;
    z-index: 2;
    padding-bottom: 4rem;
}
.shop-hero h1 {
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 3.5rem;
    letter-spacing: 0.05em;
    line-height: 1.15;
    animation: fadeInUp 1s ease-out both;
}
.shop-hero .lead {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    animation: fadeInUp 1s ease-out 0.2s both;
}
.shop-hero .btn {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.min-vh-50 { min-height: 50vh; }

/* ===== Section titles ===== */
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--shop-text);
    margin-bottom: 0.3rem;
}
.section-subtitle {
    color: var(--shop-muted);
    font-size: 0.88rem;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
    font-weight: 300;
}

/* ===== Buttons ===== */
.btn-primary,
.btn-outline-primary {
    color: var(--shop-text);
    background: transparent;
    border: 1px solid var(--shop-text);
    border-radius: 0;
    font-weight: 400;
    font-size: 0.78rem;
    padding: 0.65rem 2rem;
    transition: all var(--shop-transition);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.btn-primary:hover,
.btn-outline-primary:hover {
    background: #000;
    border-color: #000;
    color: #fff;
    transform: none;
    box-shadow: none;
}
.btn-primary:focus,
.btn-outline-primary:focus {
    box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.3);
}

/* Hero CTA */
.shop-hero .btn-primary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.shop-hero .btn-primary:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: none;
    box-shadow: none;
}

/* Product detail add-to-cart */
.add-to-basket-form .btn-primary {
    background: #000;
    color: #fff;
    border-color: #000;
}
.add-to-basket-form .btn-primary:hover {
    background: #b8860b;
    border-color: #b8860b;
    color: #fff;
}

/* ===== Product Cards (Luxury Portrait) ===== */
.product-card {
    border-radius: 0;
    overflow: hidden;
    transition: all var(--shop-transition);
    border: none;
    background: var(--shop-bg);
}
.product-card:hover {
    transform: none;
    box-shadow: none;
}

.product-card-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}
.product-card-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background var(--shop-transition);
}
.product-card:hover .product-card-img-wrapper::after {
    background: rgba(0,0,0,0.08);
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0, 0.25, 1);
}
.product-card:hover .product-card-img {
    transform: scale(1.03);
}

.product-card .card-body {
    padding: 1rem 0.25rem;
}
.product-card .card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 500;
}
.product-card .card-title a {
    font-weight: 500;
    transition: color var(--shop-transition);
}
.product-card .card-title a:hover {
    color: #b8860b !important;
}

.product-price {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--shop-muted);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.03em;
}

.product-price-detail {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--shop-text);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.03em;
}

/* ===== Cart Dropdown ===== */
.cart-dropdown {
    right: 0 !important;
    left: auto !important;
    width: 340px;
    border: 1px solid var(--shop-border);
    border-radius: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    animation: cartDropIn 0.3s ease-out;
    overflow: hidden;
    background: var(--shop-bg);
}
@keyframes cartDropIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.cart-dropdown-items {
    max-height: 280px;
    overflow-y: auto;
}
.cart-dropdown-items::-webkit-scrollbar {
    width: 3px;
}
.cart-dropdown-items::-webkit-scrollbar-thumb {
    background: var(--shop-border);
}
.cart-dropdown-line {
    transition: background 0.2s;
    will-change: opacity, transform, height;
}
.cart-dropdown-line:hover {
    background: var(--shop-primary-light);
}
.cart-remove-btn {
    opacity: 0.4;
    transition: opacity 0.3s, color 0.3s;
}
.cart-remove-btn:hover {
    opacity: 1;
    color: var(--bs-danger) !important;
}

/* ===== Quick Add to Cart ===== */
.quick-add-btn {
    border-radius: 0;
    font-weight: 400;
    font-size: 0.72rem;
    padding: 0.4rem 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===== Toast Messages ===== */
.shop-toast {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    font-size: 0.8rem;
    color: #fff;
    max-width: 300px;
    animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.shop-toast.hiding {
    animation: toastOut 0.3s ease-in forwards;
}
.shop-toast .toast-body {
    padding: 0.6rem 1rem;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-8px); }
}

/* ===== Category Banners (Luxury Zigzag) ===== */
.category-banner {
    position: relative;
    overflow: hidden;
    height: 280px;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: none;
    border-radius: 0;
    transition: all var(--shop-transition);
}
.category-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 100%);
    transition: background var(--shop-transition);
}
.category-banner:hover::after {
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
}
.category-banner .category-banner-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
}
.category-banner .category-banner-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.category-banner .category-banner-count {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.category-banner:nth-child(even) .category-banner-content {
    margin-left: auto;
    text-align: right;
}
.category-banner:nth-child(even)::after {
    background: linear-gradient(to left, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 100%);
}
.category-banner:nth-child(even):hover::after {
    background: linear-gradient(to left, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
}

.category-count {
    font-size: 0.72rem;
    color: #b8860b;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===== Editorial Quote ===== */
.editorial-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 300;
    font-style: italic;
    color: var(--shop-text);
    line-height: 1.4;
    letter-spacing: 0.02em;
}

/* ===== Feature/Trust Section ===== */
.feature-card {
    padding: 2.5rem 1.5rem;
    border-radius: 0;
    transition: all var(--shop-transition);
    text-align: center;
    background: var(--shop-bg);
    border: 1px solid var(--shop-border);
}
.feature-card:hover {
    transform: none;
    border-color: #b8860b;
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 0;
    background: transparent;
    border: 1px solid var(--shop-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    transition: all var(--shop-transition);
}
.feature-card:hover .feature-icon-wrap {
    background: #000;
    border-color: #000;
}
.feature-icon-wrap i {
    font-size: 1.3rem;
    color: var(--shop-text);
    transition: color var(--shop-transition);
}
.feature-card:hover .feature-icon-wrap i {
    color: #fff;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--shop-text);
    display: block;
}

/* ===== Footer (Luxury Black) ===== */
.shop-footer {
    background: #000;
    border-top: none;
    color: rgba(255,255,255,0.6);
}
.shop-footer h5, .shop-footer h6 {
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.shop-footer a {
    color: rgba(255,255,255,0.5);
    transition: color var(--shop-transition);
}
.shop-footer a:hover {
    color: #b8860b !important;
}
.shop-footer .text-muted {
    color: rgba(255,255,255,0.45) !important;
}
.shop-footer .social-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    transition: all var(--shop-transition);
    font-size: 1.1rem;
}
.shop-footer .social-icon:hover {
    border-color: #b8860b;
    color: #b8860b;
}

/* Newsletter */
.luxury-newsletter input {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0;
    color: #fff;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    transition: border-color var(--shop-transition);
}
.luxury-newsletter input::placeholder {
    color: rgba(255,255,255,0.35);
}
.luxury-newsletter input:focus {
    border-color: #b8860b;
    box-shadow: none;
    outline: none;
}
.luxury-newsletter button {
    background: #b8860b;
    color: #fff;
    border: 1px solid #b8860b;
    border-radius: 0;
    padding: 0.6rem 1.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all var(--shop-transition);
}
.luxury-newsletter button:hover {
    background: transparent;
    color: #b8860b;
}

/* ===== Quantity Input ===== */
.qty-btn {
    border-color: var(--shop-border);
    border-radius: 0;
}
.qty-input {
    border-color: var(--shop-border);
    max-width: 60px;
    border-radius: 0;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===== Product Description ===== */
.product-description {
    color: var(--shop-muted);
    line-height: 1.8;
    font-weight: 300;
}

/* ===== Accordion (Luxury Minimal) ===== */
.luxury-accordion .accordion-item {
    border: none;
    border-top: 1px solid var(--shop-border);
    border-radius: 0;
    background: transparent;
}
.luxury-accordion .accordion-item:last-child {
    border-bottom: 1px solid var(--shop-border);
}
.luxury-accordion .accordion-button {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--shop-text);
    padding: 1.2rem 0;
}
.luxury-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--shop-text);
}
.luxury-accordion .accordion-button::after {
    width: 0.85rem;
    height: 0.85rem;
}
.luxury-accordion .accordion-body {
    padding: 0 0 1.5rem 0;
    color: var(--shop-muted);
    font-weight: 300;
    line-height: 1.8;
}
[data-theme="dark"] .luxury-accordion .accordion-button {
    color: #e8e8e8;
}
[data-theme="dark"] .luxury-accordion .accordion-button:not(.collapsed) {
    color: #e8e8e8;
}

/* ===== Browse Filter Dropdown ===== */
.browse-filter-dropdown {
    border-radius: 0;
    border: 1px solid var(--shop-border);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 2rem 0.5rem 0.8rem;
    color: var(--shop-text);
    background: var(--shop-bg);
}
.browse-filter-dropdown:focus {
    border-color: #b8860b;
    box-shadow: none;
}

/* ===== Forms ===== */
.form-control:focus {
    border-color: #b8860b;
    box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.15);
}

/* ===== Oscar overrides ===== */
.page-header { border-bottom: none; }

/* ===== Account Pages ===== */
.account-profile .page-header h1 {
    font-size: 1.5rem;
}

/* ===== Basket / Checkout ===== */
.basket-title { font-weight: 700; }

/* ===== Login / Registration ===== */
.login-register .card {
    border-radius: 0;
    border: 1px solid var(--shop-border);
}

/* ===== Checkout ===== */
.container.page {
    max-width: 720px;
}
.container.page .sub-header {
    border: none;
}
.container.page .sub-header h1,
.container.page .sub-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--shop-text);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}
.card.card-body.bg-light,
.card-body.bg-light {
    background: #fff !important;
    border: 1px solid var(--shop-border) !important;
    border-radius: 0 !important;
    padding: 1.5rem !important;
    box-shadow: none;
}
.form-group.row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}
.form-group.row > .col-sm-4,
.form-group.row > .col-sm-7,
.form-group.row > .col-sm-8,
.form-group.row > .offset-sm-4.col-sm-8,
.form-group.row > [class*="col-sm-"] {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    padding-left: 0;
    padding-right: 0;
}
.form-group.row > .offset-sm-4 {
    margin-left: 0 !important;
}
label.col-form-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--shop-text);
    padding-bottom: 0.2rem;
    letter-spacing: 0.03em;
}

/* Checkout step indicator */
.checkout-steps {
    padding: 0.5rem 0;
}
.checkout-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.checkout-step-num {
    width: 28px;
    height: 28px;
    border-radius: 0;
    background: var(--shop-border);
    color: var(--shop-muted);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.checkout-step.active .checkout-step-num {
    background: #000;
    color: #fff;
}
.checkout-step.done .checkout-step-num {
    background: #b8860b;
    color: #fff;
}
.checkout-step-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--shop-muted);
    letter-spacing: 0.05em;
}
.checkout-step.active .checkout-step-label {
    color: var(--shop-text);
}
.checkout-step-line {
    width: 40px;
    height: 1px;
    background: var(--shop-border);
    margin: 0 0.5rem;
}

/* Checkout form fields */
.checkout-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--shop-text);
    margin-bottom: 0.3rem;
    letter-spacing: 0.03em;
}
.checkout-input {
    border-radius: 0;
    border: 1px solid var(--shop-border);
    padding: 0.6rem 0.85rem;
    font-size: 0.88rem;
    transition: border-color 0.3s ease;
}
.checkout-input:focus {
    border-color: #b8860b;
    box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.1);
}
.checkout-input.is-invalid,
.checkout-input:invalid:not(:placeholder-shown) {
    border-color: var(--bs-danger);
}
.checkout-field-error {
    font-size: 0.75rem;
    color: var(--bs-danger);
    margin-top: 0.25rem;
    padding-left: 0.2rem;
}

/* Checkout saved address cards */
.checkout-address-card {
    border-radius: 0;
    border: 1px solid var(--shop-border);
    transition: all 0.3s ease;
}
.checkout-address-card:hover {
    border-color: #b8860b;
}
.checkout-address-card.border-primary {
    border-color: #b8860b;
}

/* Checkout CTA button */
#new_shipping_address .btn-primary.btn-lg {
    background: #000;
    border-color: #000;
    color: #fff;
    border-radius: 0;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
#new_shipping_address .btn-primary.btn-lg:hover {
    background: #b8860b;
    border-color: #b8860b;
    transform: none;
    box-shadow: none;
}

/* ===== Basket Page ===== */
.basket-item-card {
    transition: all var(--shop-transition);
}
.basket-item-card:hover {
    box-shadow: none;
}

/* ===== Product Detail Widescreen ===== */
.pdp-image-col {
    position: relative;
}
.pdp-image-col img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}
.pdp-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 3rem;
}
@media (max-width: 991.98px) {
    .pdp-info-col {
        padding-left: 0;
        padding-top: 2rem;
    }
}

/* ===== Pagination (Luxury) ===== */
.pagination .page-link {
    border-radius: 0;
    border: 1px solid var(--shop-border);
    color: var(--shop-text);
    font-size: 0.82rem;
    padding: 0.5rem 0.85rem;
    transition: all var(--shop-transition);
}
.pagination .page-link:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}
.pagination .page-item.active .page-link {
    background: #000;
    border-color: #000;
    color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .shop-hero {
        height: 50vh;
        min-height: 350px;
    }
    .shop-hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.6rem; }
    .category-banner { height: 200px; }
    .editorial-quote { font-size: 1.6rem; }
    .pdp-info-col { padding-left: 0; padding-top: 1.5rem; }
}

@media (max-width: 576px) {
    .nav-search-form { display: none !important; }
}

/* ===== Mobile navbar toggler fix ===== */
.shop-navbar .navbar-toggler {
    border-color: rgba(255,255,255,0.2);
    padding: 0.25rem 0.5rem;
}
.shop-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.shop-navbar .navbar-collapse {
    background: #111;
    border-radius: 0;
    margin-top: 0.5rem;
}
@media (max-width: 991.98px) {
    .shop-navbar .navbar-collapse {
        padding: 0.5rem;
    }
    .shop-navbar .navbar-nav .nav-link {
        padding: 0.6rem 1rem;
    }
    .shop-navbar .nav-search-form {
        margin: 0.5rem 0;
    }
    .cart-hover-wrapper .cart-dropdown {
        position: static !important;
        box-shadow: none !important;
        width: 100% !important;
        border: 1px solid rgba(255,255,255,0.1);
        margin-top: 0.5rem;
    }
}

/* ===== Vai al carrello link in PDP mobile ===== */
.pdp-cart-link {
    display: none;
}
@media (max-width: 991.98px) {
    .pdp-cart-link {
        display: block;
        margin-top: 0.75rem;
    }
}
