/* ===== Shop Theme - CSS Variables ===== */
:root {
    --shop-primary: #8b4557;
    --shop-primary-dark: #722f37;
    --shop-primary-light: #f8e8ec;
    --shop-accent: #d4a574;
    --shop-bg: #ffffff;
    --shop-text: #1e293b;
    --shop-muted: #64748b;
    --shop-border: #e2e8f0;
    --shop-card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shop-card-shadow-hover: 0 20px 40px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.06);
    --shop-radius: 16px;
    --shop-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Dark Theme ===== */
[data-theme="dark"] {
    --shop-bg: #0f1117;
    --shop-text: #e2e8f0;
    --shop-muted: #94a3b8;
    --shop-border: rgba(255, 255, 255, 0.1);
    --shop-primary-light: rgba(37, 99, 235, 0.15);
    --shop-card-shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shop-card-shadow-hover: 0 20px 40px rgba(0,0,0,0.4);
}
[data-theme="dark"] .shop-navbar {
    background: rgba(15, 17, 23, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .shop-navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
[data-theme="dark"] .shop-navbar .navbar-brand { color: #e2e8f0; }
[data-theme="dark"] .shop-navbar .nav-link:hover { color: #e2e8f0; }
[data-theme="dark"] .shop-navbar .navbar-toggler { border-color: rgba(255,255,255,0.15); }
[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.6)' 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: #1a1d27; }
[data-theme="dark"] .shop-navbar .dropdown-menu {
    background: #1a1d27;
    border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .shop-navbar .dropdown-item { color: #94a3b8; }
[data-theme="dark"] .shop-navbar .dropdown-item:hover { background: rgba(255,255,255,0.06); color: #e2e8f0; }
[data-theme="dark"] .dropdown-divider { border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .shop-hero {
    background: linear-gradient(160deg, #0f1117 0%, #141824 50%, #1a1f36 100%);
}
[data-theme="dark"] .shop-hero::before {
    background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
}
[data-theme="dark"] .shop-hero::after {
    background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
}
[data-theme="dark"] .product-card,
[data-theme="dark"] .category-card,
[data-theme="dark"] .feature-card {
    background: #1a1d27;
    border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .product-card:hover { border-color: rgba(37,99,235,0.2); }
[data-theme="dark"] .category-card:hover { border-color: rgba(37,99,235,0.2); }
[data-theme="dark"] .cart-dropdown { background: #1a1d27; }
[data-theme="dark"] .cart-dropdown-line:hover { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .cart-dropdown .bg-light { background: #12141c !important; }
[data-theme="dark"] .shop-footer {
    background: #0c0e14;
    border-top-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .bg-light { background-color: #1a1d27 !important; }
[data-theme="dark"] .text-dark, [data-theme="dark"] .text-body { color: #e2e8f0 !important; }
[data-theme="dark"] .form-control {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}
[data-theme="dark"] .card { background: #1a1d27; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .card-body.bg-light { background: #1a1d27 !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: #94a3b8; border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .btn-outline-secondary:hover { background: rgba(255,255,255,0.06); color: #e2e8f0; }
[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.1); color: #e2e8f0; }
[data-theme="dark"] .checkout-address-card { border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .basket-item-card { background: #1a1d27; }
[data-theme="dark"] .login-register .card { background: #1a1d27; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .category-count { background: rgba(37,99,235,0.15); color: #94a3b8; }
/* Theme toggle */
.shop-theme-toggle {
    background: none;
    border: none;
    color: var(--shop-muted);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.shop-theme-toggle:hover { color: var(--shop-text); }

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
}

/* ===== 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.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes pulse-soft {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease-out both;
}
.animate-fade-up-delay-1 { animation-delay: 0.1s; }
.animate-fade-up-delay-2 { animation-delay: 0.2s; }
.animate-fade-up-delay-3 { animation-delay: 0.3s; }
.animate-fade-up-delay-4 { animation-delay: 0.4s; }

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

/* ===== Navbar ===== */
.shop-navbar {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0.6rem 0;
    z-index: 1030;
    transition: all 0.3s ease;
}
.shop-navbar.scrolled {
    padding: 0.4rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.shop-navbar .navbar-brand {
    color: var(--shop-text);
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.shop-navbar .nav-link {
    color: var(--shop-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
    transition: color var(--shop-transition);
    position: relative;
}
.shop-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--shop-primary);
    transition: all var(--shop-transition);
    transform: translateX(-50%);
    border-radius: 1px;
}
.shop-navbar .nav-link:hover {
    color: var(--shop-text);
}
.shop-navbar .nav-link:hover::after {
    width: 60%;
}
.shop-navbar .dropdown-toggle::after {
    display: block;
    border: none;
    margin: 0;
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--shop-primary);
    transition: all var(--shop-transition);
    transform: translateX(-50%);
    border-radius: 1px;
    content: '';
}
.shop-navbar .dropdown-toggle:hover::after {
    width: 60%;
}

.nav-search-form .form-control {
    border-radius: 20px 0 0 20px;
    border-color: var(--shop-border);
    font-size: 0.82rem;
}
.nav-search-form .btn {
    border-radius: 0 20px 20px 0;
    border-color: var(--shop-border);
}

.cart-link .bi-bag { font-size: 1.15rem; }
.cart-badge {
    position: absolute;
    top: 2px;
    right: -4px;
    background: var(--shop-primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ===== Hero ===== */
.shop-hero {
    background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 50%, #e0e7ff 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.shop-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}
.shop-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.shop-hero h1 {
    color: var(--shop-text);
    letter-spacing: -0.03em;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out both;
}

.shop-hero .lead {
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.shop-hero .btn {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-visual {
    position: relative;
    animation: scaleIn 1s ease-out 0.3s both;
}
.hero-visual .hero-circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--shop-primary-light) 0%, rgba(37,99,235,0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}
.hero-visual .hero-circle i {
    font-size: 6rem;
    color: var(--shop-primary);
    animation: float 4s ease-in-out infinite;
}
.hero-visual .hero-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--shop-primary);
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}
.hero-visual .hero-dot:nth-child(2) { top: 15%; right: 10%; animation-delay: 0.5s; width: 8px; height: 8px; }
.hero-visual .hero-dot:nth-child(3) { bottom: 20%; left: 5%; animation-delay: 1s; width: 16px; height: 16px; opacity: 0.2; }
.hero-visual .hero-dot:nth-child(4) { top: 40%; right: 0; animation-delay: 1.5s; background: var(--shop-accent); }

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

/* ===== Section titles ===== */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--shop-text);
    margin-bottom: 0.3rem;
}
.section-subtitle {
    color: var(--shop-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* ===== Buttons ===== */
.btn-primary,
.btn-outline-primary {
    color: var(--shop-primary);
    background: transparent;
    border: 1.5px solid var(--shop-primary);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.5rem 1.3rem;
    transition: all var(--shop-transition);
}
.btn-primary:hover,
.btn-outline-primary:hover {
    background: var(--shop-primary);
    border-color: var(--shop-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.btn-primary:focus,
.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

/* Hero CTA — keep solid for the main call-to-action */
.shop-hero .btn-primary {
    background: var(--shop-primary);
    color: #fff;
    border-color: var(--shop-primary);
}
.shop-hero .btn-primary:hover {
    background: var(--shop-primary-dark);
    border-color: var(--shop-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Product detail add-to-cart — keep solid */
.add-to-basket-form .btn-primary {
    background: var(--shop-primary);
    color: #fff;
    border-color: var(--shop-primary);
}
.add-to-basket-form .btn-primary:hover {
    background: var(--shop-primary-dark);
    border-color: var(--shop-primary-dark);
}

/* ===== Product Cards ===== */
.product-card {
    border-radius: var(--shop-radius);
    overflow: hidden;
    transition: all var(--shop-transition);
    border: 1px solid transparent;
    background: #fff;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shop-card-shadow-hover);
    border-color: rgba(37,99,235,0.1);
}

.product-card-img {
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-card-img {
    transform: scale(1.06);
}

.product-card .card-body {
    padding: 1rem 1.1rem;
}
.product-card .card-title a {
    font-weight: 600;
    font-size: 0.92rem;
    transition: color var(--shop-transition);
}
.product-card .card-title a:hover {
    color: var(--shop-primary) !important;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--shop-primary);
}

.product-price-detail {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--shop-primary);
}

/* ===== Cart Dropdown ===== */
.cart-dropdown {
    right: 0 !important;
    left: auto !important;
    width: 320px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    animation: cartDropIn 0.25s ease-out;
    overflow: hidden;
}
@keyframes cartDropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.cart-dropdown-items {
    max-height: 280px;
    overflow-y: auto;
}
.cart-dropdown-items::-webkit-scrollbar {
    width: 4px;
}
.cart-dropdown-items::-webkit-scrollbar-thumb {
    background: var(--shop-border);
    border-radius: 2px;
}
.cart-dropdown-line {
    transition: background 0.15s;
    will-change: opacity, transform, height;
}
.cart-dropdown-line:hover {
    background: #f8fafc;
}
.cart-remove-btn {
    opacity: 0.4;
    transition: opacity 0.2s, color 0.2s;
}
.cart-remove-btn:hover {
    opacity: 1;
    color: var(--bs-danger) !important;
}

/* ===== Quick Add to Cart ===== */
.quick-add-btn {
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
}

/* ===== Toast Messages ===== */
.shop-toast {
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    font-size: 0.82rem;
    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) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-8px) scale(0.95); }
}

/* ===== Category Cards ===== */
.category-card {
    border-radius: var(--shop-radius);
    transition: all var(--shop-transition);
    cursor: pointer;
    border: 1px solid var(--shop-border);
    background: #fff;
    position: relative;
    overflow: hidden;
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--shop-primary);
    transform: scaleX(0);
    transition: transform var(--shop-transition);
    transform-origin: left;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shop-card-shadow-hover);
    border-color: var(--shop-primary-light);
}
.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    font-size: 2.8rem;
    color: var(--shop-primary);
    display: block;
    transition: transform var(--shop-transition);
}
.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-count {
    font-size: 0.75rem;
    color: var(--shop-muted);
    background: var(--shop-primary-light);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
}

/* ===== Feature/Trust Section ===== */
.feature-card {
    padding: 2rem 1.5rem;
    border-radius: var(--shop-radius);
    transition: all var(--shop-transition);
    text-align: center;
    background: #fff;
    border: 1px solid var(--shop-border);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shop-card-shadow-hover);
    border-color: var(--shop-primary-light);
}

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--shop-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all var(--shop-transition);
}
.feature-card:hover .feature-icon-wrap {
    background: var(--shop-primary);
    transform: scale(1.1);
}
.feature-icon-wrap i {
    font-size: 1.6rem;
    color: var(--shop-primary);
    transition: color var(--shop-transition);
}
.feature-card:hover .feature-icon-wrap i {
    color: #fff;
}

/* Legacy feature-icon (for other pages) */
.feature-icon {
    font-size: 2.5rem;
    color: var(--shop-primary);
    display: block;
}

/* ===== CTA Banner ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--shop-primary) 0%, #7c3aed 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.cta-banner h2 { color: #fff; }
.cta-banner .btn-light {
    background: #fff;
    color: var(--shop-primary);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.7rem 2rem;
    transition: all var(--shop-transition);
}
.cta-banner .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ===== Footer ===== */
.shop-footer {
    background: #f8fafc;
    border-top: 1px solid var(--shop-border);
}
.shop-footer h5, .shop-footer h6 {
    letter-spacing: -0.01em;
}
.shop-footer a {
    transition: color var(--shop-transition);
}
.shop-footer a:hover {
    color: var(--shop-primary) !important;
}

/* ===== Quantity Input ===== */
.qty-btn { border-color: var(--shop-border); }
.qty-input {
    border-color: var(--shop-border);
    max-width: 60px;
}
.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.7;
}

/* ===== Alerts / Forms ===== */
.form-control:focus {
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 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: var(--shop-radius);
    border: 1px solid var(--shop-border);
}

/* ===== Checkout ===== */
/* Container */
.container.page {
    max-width: 720px;
}
.container.page .sub-header {
    border: none;
}
.container.page .sub-header h1,
.container.page .sub-header h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--shop-text);
    margin-bottom: 1rem;
}
/* Card wrapper */
.card.card-body.bg-light,
.card-body.bg-light {
    background: #fff !important;
    border: 1px solid var(--shop-border) !important;
    border-radius: var(--shop-radius) !important;
    padding: 1.5rem !important;
    box-shadow: var(--shop-card-shadow);
}
/* Stack form fields vertically */
.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.85rem;
    font-weight: 600;
    color: var(--shop-text);
    padding-bottom: 0.2rem;
}

/* 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: 50%;
    background: var(--shop-border);
    color: var(--shop-muted);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.checkout-step.active .checkout-step-num {
    background: var(--shop-primary);
    color: #fff;
}
.checkout-step.done .checkout-step-num {
    background: #10b981;
    color: #fff;
}
.checkout-step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--shop-muted);
}
.checkout-step.active .checkout-step-label {
    color: var(--shop-text);
}
.checkout-step-line {
    width: 40px;
    height: 2px;
    background: var(--shop-border);
    margin: 0 0.5rem;
}

/* Checkout form fields */
.checkout-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--shop-text);
    margin-bottom: 0.3rem;
}
.checkout-input {
    border-radius: 10px;
    border: 1.5px solid var(--shop-border);
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.checkout-input:focus {
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 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: 12px;
    border: 1.5px solid var(--shop-border);
    transition: all 0.2s ease;
}
.checkout-address-card:hover {
    border-color: var(--shop-primary);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.1);
}
.checkout-address-card.border-primary {
    border-color: var(--shop-primary);
}

/* Checkout CTA button */
#new_shipping_address .btn-primary.btn-lg {
    background: var(--shop-primary);
    border-color: var(--shop-primary);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
}
#new_shipping_address .btn-primary.btn-lg:hover {
    background: var(--shop-primary-dark);
    border-color: var(--shop-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .shop-hero {
        padding: 3rem 0 2.5rem;
        text-align: center;
    }
    .shop-hero h1 { font-size: 2rem; }
    .product-card-img { height: 180px; }
    .section-title { font-size: 1.4rem; }
    .hero-visual .hero-circle { width: 200px; height: 200px; }
    .hero-visual .hero-circle i { font-size: 4rem; }
    .cta-banner { padding: 2rem 1.5rem; border-radius: 16px; }
}

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

/* ===== Mobile navbar toggler fix ===== */
.shop-navbar .navbar-toggler {
    border-color: rgba(0,0,0,0.15);
    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(0,0,0,0.6)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.shop-navbar .navbar-collapse {
    background: white;
    border-radius: 12px;
    margin-top: 0.5rem;
}
@media (max-width: 991.98px) {
    .shop-navbar .navbar-collapse {
        padding: 0.5rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }
    .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 #eee;
        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;
    }
}

/* ===== Boutique Moda — Override ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

h1, h2, h3, h4, h5, h6,
.section-title,
.shop-hero h1,
.navbar-brand {
    font-family: 'Playfair Display', Georgia, serif !important;
}

body {
    font-family: 'Lato', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Hero boutique — sfondo raffinato */
.shop-hero {
    background: linear-gradient(160deg, #fdf6f0 0%, #f8e8ec 40%, #f0d5dc 100%) !important;
}
.shop-hero h1 {
    color: #3d1c26;
    letter-spacing: -0.02em;
}
.shop-hero .lead {
    color: #6b4450 !important;
    font-weight: 300;
    font-size: 1.2rem;
}
.shop-hero .btn-primary {
    background: #8b4557;
    border-color: #8b4557;
    border-radius: 30px;
    padding: 12px 32px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.shop-hero .btn-primary:hover {
    background: #722f37;
    border-color: #722f37;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 87, 0.3);
}

/* Hero visual — boutique style */
.hero-circle {
    background: linear-gradient(135deg, #8b4557, #d4a574) !important;
}
.hero-circle i {
    color: #fff !important;
}

/* Category cards — più eleganti */
.category-card {
    border-radius: 20px !important;
    transition: all 0.4s ease;
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(139, 69, 87, 0.15);
}
.category-icon {
    color: #8b4557 !important;
    font-size: 2.5rem !important;
}

/* Product cards — look premium */
.product-card {
    border-radius: 16px !important;
    overflow: hidden;
}
.product-card-img {
    transition: transform 0.5s ease;
}
.product-card:hover .product-card-img {
    transform: scale(1.08);
}
.product-price {
    color: #8b4557 !important;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Buttons — stile boutique */
.btn-primary {
    background-color: #8b4557;
    border-color: #8b4557;
    border-radius: 25px;
}
.btn-primary:hover {
    background-color: #722f37;
    border-color: #722f37;
}
.btn-outline-primary {
    color: #8b4557;
    border-color: #8b4557;
    border-radius: 25px;
}
.btn-outline-primary:hover {
    background-color: #8b4557;
    border-color: #8b4557;
    color: #fff;
}

/* Features section */
.feature-icon-wrap i {
    color: #d4a574 !important;
}

/* CTA banner — gradient boutique */
.cta-banner {
    background: linear-gradient(135deg, #8b4557 0%, #722f37 50%, #4a1942 100%) !important;
    border-radius: 24px;
}

/* Footer */
.shop-footer {
    background: #2c1810 !important;
}
.shop-footer h5, .shop-footer h6 {
    color: #d4a574;
}

/* Section titles */
.section-title {
    position: relative;
    display: inline-block;
    color: #3d1c26;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #d4a574;
    margin: 12px auto 0;
}

/* Navbar brand — serif elegante */
.shop-navbar .navbar-brand {
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 1.3rem;
}

/* Quick add button hover */
.quick-add-btn:hover {
    background: #8b4557;
    border-color: #8b4557;
    color: #fff;
}

/* Cart badge */
.cart-badge {
    background: #d4a574 !important;
}

/* Dark theme adjustments for boutique */
[data-theme="dark"] .shop-hero {
    background: linear-gradient(160deg, #1a0e12 0%, #2c1820 50%, #3d1c26 100%) !important;
}
[data-theme="dark"] .shop-hero h1 { color: #f8e8ec; }
[data-theme="dark"] .shop-hero .lead { color: #c9a87c !important; }
[data-theme="dark"] .section-title { color: #f0d5dc; }
[data-theme="dark"] .shop-footer { background: #0f0a08 !important; }
[data-theme="dark"] .cta-banner {
    background: linear-gradient(135deg, #5c2a3a 0%, #4a1942 100%) !important;
}
