/* Hills Trends Shop - Modern Ecommerce CSS */

:root {
    --ht-primary: #1a1a2e;
    --ht-accent: #c8972a;
    --ht-accent-light: #f5d78e;
    --ht-light: #f8f6f2;
    --ht-white: #ffffff;
    --ht-gray: #6c757d;
    --ht-border: #e8e4dc;
    --ht-text: #2d2d2d;
    --ht-text-light: #7a7a7a;
    --ht-success: #28a745;
    --ht-danger: #dc3545;
    --ht-shadow: 0 2px 20px rgba(0,0,0,0.08);
    --ht-shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --ht-radius: 12px;
    --ht-radius-sm: 8px;
    --ht-transition: all 0.3s ease;
}

/* ── Reset / Base ── */
* { box-sizing: border-box; }
body.shop-body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--ht-light);
    color: var(--ht-text);
    margin: 0;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--ht-accent); }

img { max-width: 100%; }

/* ── Navbar ── */
.shop-navbar {
    background: var(--ht-primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.shop-navbar .navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--ht-white) !important;
}

.shop-navbar .navbar-brand span {
    color: var(--ht-accent);
}

.shop-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 1rem 0.75rem !important;
    transition: var(--ht-transition);
}

.shop-navbar .nav-link:hover,
.shop-navbar .nav-link.active {
    color: var(--ht-accent) !important;
}

.shop-navbar .navbar-toggler {
    background: transparent;
    border: 2px solid rgba(200,151,42,0.35);
    border-radius: 10px;
    width: 46px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    transition: all 0.25s;
}
.shop-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(200,151,42,0.2);
    border-color: var(--ht-accent);
    outline: none;
}
.shop-navbar .navbar-toggler[aria-expanded="true"] {
    background: rgba(200,151,42,0.1);
    border-color: var(--ht-accent);
}
.shop-navbar .ht-bar {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--ht-accent);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    transform-origin: center;
}
.shop-navbar .navbar-toggler[aria-expanded="true"] .ht-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.shop-navbar .navbar-toggler[aria-expanded="true"] .ht-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.shop-navbar .navbar-toggler[aria-expanded="true"] .ht-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.nav-search-form {
    position: relative;
}

.nav-search-form input {
    border-radius: 25px;
    border: 1.5px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: white;
    padding: 0.45rem 2.5rem 0.45rem 1rem;
    width: 260px;
    transition: var(--ht-transition);
    font-size: 0.875rem;
}

.nav-search-form input::placeholder { color: rgba(255,255,255,0.5); }
.nav-search-form input:focus {
    outline: none;
    border-color: var(--ht-accent);
    background: rgba(255,255,255,0.12);
    width: 300px;
}

.nav-search-form button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    padding: 0;
}

.nav-icon-btn {
    position: relative;
    color: rgba(255,255,255,0.85) !important;
    font-size: 1.1rem;
    padding: 0.5rem 0.6rem !important;
    transition: var(--ht-transition);
}

.nav-icon-btn:hover { color: var(--ht-accent) !important; }

.cart-badge {
    position: absolute;
    top: 2px;
    right: 0;
    background: var(--ht-accent);
    color: var(--ht-primary);
    font-size: 0.6rem;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── Hero Section ── */
.shop-hero {
    background: linear-gradient(135deg, var(--ht-primary) 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200,151,42,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.shop-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(200,151,42,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-badge {
    display: inline-block;
    background: rgba(200,151,42,0.2);
    color: var(--ht-accent);
    border: 1px solid rgba(200,151,42,0.4);
    padding: 0.35rem 1rem;
    border-radius: 25px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title span { color: var(--ht-accent); }

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 480px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.btn-hero-primary {
    background: var(--ht-accent);
    color: var(--ht-primary);
    border: none;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--ht-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-primary:hover {
    background: #e5aa30;
    color: var(--ht-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200,151,42,0.4);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--ht-transition);
}

.btn-hero-secondary:hover {
    border-color: var(--ht-accent);
    color: var(--ht-accent);
    background: rgba(200,151,42,0.1);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.hero-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ht-accent);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrap img {
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 450px;
    object-fit: cover;
}

.hero-floating-card {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--ht-text);
}

.hero-floating-card.card-1 { bottom: 20%; right: -5%; }
.hero-floating-card.card-2 { top: 20%; left: -5%; }
.hero-floating-card .fc-icon { font-size: 1.5rem; }

/* ── Section Titles ── */
.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ht-primary);
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--ht-text-light);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.section-divider {
    width: 50px;
    height: 3px;
    background: var(--ht-accent);
    border-radius: 2px;
    margin-bottom: 1rem;
}

/* ── Product Card ── */
.product-card {
    background: white;
    border-radius: var(--ht-radius);
    overflow: hidden;
    transition: var(--ht-transition);
    border: 1px solid var(--ht-border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ht-shadow-lg);
    border-color: transparent;
}

.product-card-img-wrap {
    position: relative;
    overflow: hidden;
    background: #f5f3ef;
    aspect-ratio: 1/1;
}

.product-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-img-wrap img {
    transform: scale(1.06);
}

.product-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge-new, .badge-featured {
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-new { background: var(--ht-accent); color: var(--ht-primary); }
.badge-featured { background: var(--ht-primary); color: white; }
.badge-out { background: #dc3545; color: white; }

.product-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--ht-transition);
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateX(0);
}

.btn-card-action {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--ht-text);
    cursor: pointer;
    transition: var(--ht-transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-decoration: none;
}

.btn-card-action:hover,
.btn-card-action.wishlisted {
    background: var(--ht-accent);
    color: var(--ht-primary);
}

.product-card-body {
    padding: 1rem 1.1rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 0.72rem;
    color: var(--ht-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.35rem;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ht-text);
    margin-bottom: 0.4rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ht-primary);
    margin-top: auto;
    padding-top: 0.5rem;
}

.product-price .currency {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ht-text-light);
    margin-right: 2px;
}

.product-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ht-text-light);
    border: 2px solid white;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
    display: inline-block;
    margin-right: 4px;
}

.btn-add-cart {
    background: var(--ht-primary);
    color: white;
    border: none;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ht-transition);
    width: 100%;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-add-cart:hover {
    background: var(--ht-accent);
    color: var(--ht-primary);
}

/* ── Category Cards ── */
.category-card {
    background: white;
    border-radius: var(--ht-radius);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--ht-border);
    transition: var(--ht-transition);
    cursor: pointer;
    display: block;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ht-shadow-lg);
    border-color: var(--ht-accent);
    color: inherit;
}

.category-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--ht-primary), #0f3460);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    color: var(--ht-accent);
    transition: var(--ht-transition);
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--ht-accent), #e5aa30);
}

.category-card:hover .category-icon { color: var(--ht-primary); }

.category-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--ht-text);
}

/* ── Filter Sidebar ── */
.filter-sidebar {
    background: white;
    border-radius: var(--ht-radius);
    padding: 1.5rem;
    border: 1px solid var(--ht-border);
    position: sticky;
    top: 80px;
}

.filter-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--ht-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--ht-accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-section-title {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ht-text-light);
    margin: 1.25rem 0 0.75rem;
}

.filter-check label {
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--ht-text);
}

.form-check-input:checked {
    background-color: var(--ht-accent);
    border-color: var(--ht-accent);
}

.price-range-inputs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.price-range-inputs input {
    width: 100%;
    border-radius: 8px;
    border: 1.5px solid var(--ht-border);
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    transition: var(--ht-transition);
}

.price-range-inputs input:focus {
    border-color: var(--ht-accent);
    outline: none;
}

/* ── Buttons (Global Shop) ── */
.btn-ht-primary {
    background: var(--ht-primary);
    color: white;
    border: 2px solid var(--ht-primary);
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--ht-transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-ht-primary:hover {
    background: transparent;
    color: var(--ht-primary);
}

.btn-ht-accent {
    background: var(--ht-accent);
    color: var(--ht-primary);
    border: 2px solid var(--ht-accent);
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--ht-transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-ht-accent:hover {
    background: #e5aa30;
    border-color: #e5aa30;
    color: var(--ht-primary);
    transform: translateY(-1px);
}

.btn-ht-outline {
    background: transparent;
    color: var(--ht-primary);
    border: 2px solid var(--ht-primary);
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--ht-transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-ht-outline:hover {
    background: var(--ht-primary);
    color: white;
}

/* ── Product Detail Page ── */
.product-gallery-main {
    border-radius: var(--ht-radius);
    overflow: hidden;
    background: white;
    border: 1px solid var(--ht-border);
    aspect-ratio: 1/1;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--ht-transition);
    flex-shrink: 0;
}

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover,
.gallery-thumb.active { border-color: var(--ht-accent); }

.product-detail-brand {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ht-accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.product-detail-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    color: var(--ht-primary);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--ht-primary);
    margin: 1.25rem 0;
}

.product-detail-price .currency { font-size: 1rem; font-weight: 600; color: var(--ht-text-light); }

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stock-in { background: #d4edda; color: #155724; }
.stock-out { background: #f8d7da; color: #721c24; }

.qty-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--ht-border);
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
}

.qty-btn {
    width: 40px;
    height: 44px;
    background: var(--ht-light);
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--ht-transition);
    color: var(--ht-text);
}

.qty-btn:hover { background: var(--ht-accent); color: var(--ht-primary); }

.qty-input {
    width: 60px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ht-text);
    background: white;
    height: 44px;
}

.qty-input:focus { outline: none; }

.product-attr-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.product-attr {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.product-attr-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ht-text-light);
    font-weight: 600;
}

.product-attr-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ht-text);
}

.product-desc-tabs .nav-link {
    color: var(--ht-text-light);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
}

.product-desc-tabs .nav-link.active {
    color: var(--ht-primary);
    border-bottom-color: var(--ht-accent);
}

/* ── Cart Page ── */
.cart-table {
    background: white;
    border-radius: var(--ht-radius);
    overflow: hidden;
    border: 1px solid var(--ht-border);
}

.cart-table thead th {
    background: var(--ht-primary);
    color: rgba(255,255,255,0.8);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border: none;
}

.cart-table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-color: var(--ht-border);
}

.cart-product-img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--ht-border);
    flex-shrink: 0;
}

.cart-product-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ht-text);
}

.cart-summary-card {
    background: white;
    border-radius: var(--ht-radius);
    padding: 1.5rem;
    border: 1px solid var(--ht-border);
    position: sticky;
    top: 90px;
}

.cart-summary-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ht-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--ht-border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.summary-row.total {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ht-primary);
    border-top: 2px solid var(--ht-border);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

/* ── Checkout ── */
.checkout-card {
    background: white;
    border-radius: var(--ht-radius);
    padding: 2rem;
    border: 1px solid var(--ht-border);
}

.checkout-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ht-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-section-title .step-number {
    width: 28px;
    height: 28px;
    background: var(--ht-accent);
    color: var(--ht-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.form-label-ht {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ht-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.form-control-ht {
    border: 1.5px solid var(--ht-border);
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    transition: var(--ht-transition);
    width: 100%;
}

.form-control-ht:focus {
    border-color: var(--ht-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(200,151,42,0.12);
}

/* ── Auth Pages ── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--ht-primary) 0%, #0f3460 100%);
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--ht-shadow-lg);
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.auth-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ht-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-logo span { color: var(--ht-accent); }

.auth-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ht-primary);
    text-align: center;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--ht-text-light);
    font-size: 0.88rem;
    margin-bottom: 2rem;
}

/* ── Account/Dashboard ── */
.account-sidebar {
    background: white;
    border-radius: var(--ht-radius);
    overflow: hidden;
    border: 1px solid var(--ht-border);
    position: sticky;
    top: 80px;
}

.account-user-info {
    background: linear-gradient(135deg, var(--ht-primary), #0f3460);
    padding: 1.75rem 1.5rem;
    text-align: center;
    color: white;
}

.account-avatar {
    width: 72px;
    height: 72px;
    background: var(--ht-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ht-primary);
    margin: 0 auto 0.75rem;
    letter-spacing: -1px;
}

.account-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    color: var(--ht-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--ht-transition);
    border-left: 3px solid transparent;
    text-decoration: none;
}

.account-nav-link:hover {
    background: var(--ht-light);
    color: var(--ht-primary);
    border-left-color: var(--ht-accent);
}

.account-nav-link.active {
    background: rgba(200,151,42,0.08);
    color: var(--ht-primary);
    border-left-color: var(--ht-accent);
    font-weight: 600;
}

.account-nav-link i { font-size: 1rem; color: var(--ht-accent); }

.stat-card {
    background: white;
    border-radius: var(--ht-radius);
    padding: 1.5rem;
    border: 1px solid var(--ht-border);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--ht-transition);
}

.stat-card:hover {
    box-shadow: var(--ht-shadow);
    transform: translateY(-2px);
}

.stat-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-card-icon.gold { background: rgba(200,151,42,0.12); color: var(--ht-accent); }
.stat-card-icon.navy { background: rgba(26,26,46,0.08); color: var(--ht-primary); }
.stat-card-icon.green { background: #d4edda; color: #155724; }

.stat-card-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ht-primary);
    line-height: 1;
}

.stat-card-label {
    font-size: 0.8rem;
    color: var(--ht-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
}

/* ── Order Status Badge ── */
.order-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.status-0 { background: #fff3cd; color: #856404; }
.status-1 { background: #cce5ff; color: #004085; }
.status-2 { background: #cce5ff; color: #004085; }
.status-3 { background: #d4edda; color: #155724; }
.status-4 { background: #f8d7da; color: #721c24; }

/* ── Flash Messages ── */
.shop-alert {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    min-width: 280px;
    max-width: 360px;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: var(--ht-shadow-lg);
    animation: slideInRight 0.35s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.shop-alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.shop-alert-error { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.shop-alert-info { background: #cce5ff; color: #004085; border-left: 4px solid #007bff; }

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ── Footer ── */
.shop-footer {
    background: var(--ht-primary);
    color: rgba(255,255,255,0.75);
    padding: 3.5rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
}

.footer-brand span { color: var(--ht-accent); }

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 280px;
    color: rgba(255,255,255,0.55);
}

.footer-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ht-accent);
    margin-bottom: 1.25rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    transition: var(--ht-transition);
    text-decoration: none;
}
.footer-links a:hover { color: var(--ht-accent); padding-left: 5px; }

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 2.5rem 0 1.5rem;
}

.footer-bottom {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* ── Breadcrumb ── */
.shop-breadcrumb {
    background: white;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--ht-border);
    font-size: 0.82rem;
}

.shop-breadcrumb .breadcrumb { margin: 0; }
.shop-breadcrumb .breadcrumb-item a { color: var(--ht-text-light); text-decoration: none; }
.shop-breadcrumb .breadcrumb-item a:hover { color: var(--ht-accent); }
.shop-breadcrumb .breadcrumb-item.active { color: var(--ht-text); font-weight: 600; }
.shop-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--ht-text-light); }

/* ── Pagination ── */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    border: 1.5px solid var(--ht-border);
    color: var(--ht-text);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    transition: var(--ht-transition);
}

.pagination .page-link:hover,
.pagination .page-item.active .page-link {
    background: var(--ht-primary);
    border-color: var(--ht-primary);
    color: white;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--ht-border);
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ht-text);
    margin-bottom: 0.75rem;
}

.empty-state-text {
    color: var(--ht-text-light);
    font-size: 0.92rem;
    margin-bottom: 2rem;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Trust Badges ── */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
}

.trust-badge-icon {
    width: 48px;
    height: 48px;
    background: rgba(200,151,42,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--ht-accent);
    flex-shrink: 0;
}

.trust-badge-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ht-primary);
    margin-bottom: 0.15rem;
}

.trust-badge-text {
    font-size: 0.78rem;
    color: var(--ht-text-light);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .shop-hero { padding: 3rem 0 2.5rem; }
    .hero-stats { gap: 1.25rem; }
    .hero-floating-card { display: none; }
    .nav-search-form input { width: 100%; }

    .filter-sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }

    .product-detail-price { font-size: 1.6rem; }

    .cart-table thead { display: none; }
    .cart-table tr { display: block; border-bottom: 1px solid var(--ht-border); }
    .cart-table td { display: flex; justify-content: space-between; align-items: center; border: none; }
    .cart-table td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--ht-text-light);
        flex-shrink: 0;
    }

    .auth-card { padding: 1.75rem 1.25rem; }
    .account-sidebar { position: static; margin-bottom: 1.5rem; }
    .checkout-card { padding: 1.25rem; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.75rem; }
    .product-card-actions { opacity: 1; transform: none; }
    .section-title { font-size: 1.4rem; }
}

/* ── Mobile Navbar (< lg = 992px) ─────────────────────────────────── */
@media (max-width: 991.98px) {

    /* Show toggler as flex container so the 3 bars lay out correctly */
    .shop-navbar .navbar-toggler {
        display: flex;
    }

    /* Collapsed menu panel */
    #shopNav {
        border-top: 1px solid rgba(200,151,42,0.18);
        padding-bottom: 0.75rem;
    }

    /* Search bar: full width */
    .shop-navbar .nav-search-form.mx-auto {
        width: 100% !important;
        margin: 0.75rem 0 0.5rem !important;
        padding: 0;
    }
    .shop-navbar .nav-search-form input {
        width: 100% !important;
        border-radius: 10px !important;
    }

    /* Nav list: stack vertically, full width */
    .shop-navbar .navbar-nav {
        align-items: stretch !important;
        gap: 0 !important;
        padding: 0;
    }

    /* Every nav link: generous tap target */
    .shop-navbar .nav-link {
        padding: 0.9rem 0.25rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        font-size: 0.97rem;
        display: flex !important;
        align-items: center;
    }
    .shop-navbar .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* Icon buttons: show icon + label side by side */
    .shop-navbar .nav-icon-btn {
        font-size: 1rem;
        gap: 0;
    }
    .shop-navbar .nav-icon-btn .mdi {
        font-size: 1.25rem;
        width: 1.75rem;
        flex-shrink: 0;
    }

    /* Mobile label text next to icons */
    .nav-mobile-label {
        font-size: 0.97rem;
        font-weight: 500;
        color: rgba(255,255,255,0.85);
        margin-left: 0.1rem;
    }

    /* Account dropdown — show inline, indented */
    .shop-navbar .dropdown-menu {
        position: static !important;
        float: none !important;
        background: transparent !important;
        border: none !important;
        border-left: 2px solid rgba(200,151,42,0.3) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 0 0 1.75rem !important;
        display: none;
    }
    .shop-navbar .dropdown-menu.show {
        display: block !important;
    }
    .shop-navbar .dropdown-menu li:first-child > div {
        padding: 0.5rem 1rem 0.25rem;
        font-size: 0.82rem;
        color: rgba(255,255,255,0.5);
    }
    .shop-navbar .dropdown-menu .dropdown-item {
        color: rgba(255,255,255,0.78) !important;
        padding: 0.65rem 1rem !important;
        font-size: 0.92rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
        background: transparent !important;
        transition: all 0.15s;
    }
    .shop-navbar .dropdown-menu .dropdown-item:hover {
        background: rgba(200,151,42,0.1) !important;
        color: var(--ht-accent) !important;
        padding-left: 1.3rem !important;
    }
    .shop-navbar .dropdown-menu .dropdown-item.text-danger {
        color: rgba(220,53,69,0.9) !important;
    }
    .shop-navbar .dropdown-divider {
        border-color: rgba(255,255,255,0.08) !important;
        margin: 0.2rem 0 !important;
    }

    /* Notification dropdown — fixed overlay below navbar */
    #shopNotiNavItem {
        position: static !important;
    }
    #shopNotiDropdown {
        position: fixed !important;
        top: 62px !important;
        left: 0.75rem !important;
        right: 0.75rem !important;
        width: auto !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 40px rgba(0,0,0,0.22) !important;
        z-index: 1100 !important;
    }
}
