/*
 * Duke's Gear Storefront
 * File: store/assets/css/store.css
 * Version: 2.0 — Brand-aligned theme
 * Brand Guide: Version 1.0 (July 2026)
 *
 * Color palette:
 *   Heritage Blue  #1a3a6b  (primary, logo blue)
 *   Fillmore Red   #c0392b  (accent, awning red)
 *   Stark White    #ffffff
 *   Orchard Green  #2e7d32  (secondary accent)
 *   Charcoal       #1c1c1c  (text, grounding)
 *   Light Gray     #f5f5f5  (page background)
 *   Border Gray    #e0e0e0
 */

/* ============================================================
   CSS Custom Properties
============================================================ */
:root {
    /* Brand colors */
    --dg-primary:         #1a3a6b;
    --dg-primary-hover:   #142d56;
    --dg-primary-light:   #e8eef7;
    --dg-accent:          #c0392b;
    --dg-accent-hover:    #a93226;
    --dg-accent-light:    #fdf0ef;
    --dg-green:           #2e7d32;
    --dg-charcoal:        #1c1c1c;

    /* Neutral palette */
    --dg-bg:              #f5f5f5;
    --dg-bg-white:        #ffffff;
    --dg-card-bg:         #ffffff;
    --dg-text:            #1c1c1c;
    --dg-text-secondary:  #555555;
    --dg-text-muted:      #888888;
    --dg-border:          #e0e0e0;
    --dg-border-light:    #f0f0f0;

    /* Spacing & shape */
    --dg-radius:          0.5rem;
    --dg-radius-lg:       0.75rem;
    --dg-shadow-sm:       0 1px 4px rgba(0,0,0,.07);
    --dg-shadow:          0 2px 10px rgba(0,0,0,.10);
    --dg-shadow-lg:       0 6px 24px rgba(0,0,0,.13);
    --dg-transition:      0.2s ease;

    /* Typography */
    --dg-font-body:       'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --dg-font-display:    'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ============================================================
   Google Fonts — Inter
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================
   Base Reset & Typography
============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--dg-bg);
    color: var(--dg-text);
    font-family: var(--dg-font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--dg-font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--dg-charcoal);
}

a {
    color: var(--dg-primary);
    transition: color var(--dg-transition);
}

a:hover {
    color: var(--dg-accent);
}

.dg-main {
    min-height: 60vh;
}

/* ============================================================
   Navigation
============================================================ */
.dg-navbar {
    background-color: var(--dg-primary) !important;
    border-bottom: 3px solid var(--dg-accent);
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    min-height: 92px;
}

.dg-navbar .navbar-brand {
    padding: 0.35rem 0;
}

.dg-navbar .navbar-brand img {
    height: 80px;
    width: auto;
    display: block;
}

/* Tablet: slightly smaller logo */
@media (max-width: 991.98px) {
    .dg-navbar .navbar-brand img {
        height: 60px;
    }
}

/* Mobile: compact logo */
@media (max-width: 575.98px) {
    .dg-navbar .navbar-brand img {
        height: 48px;
    }
}

.dg-navbar .nav-link {
    color: rgba(255,255,255,0.88) !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 1.25rem 0.75rem !important;
    transition: color var(--dg-transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}

.dg-navbar .nav-link:hover,
.dg-navbar .nav-link.active {
    color: #ffffff !important;
    border-bottom-color: var(--dg-accent);
}

.dg-navbar .dg-search-input {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    border-radius: 2rem;
    padding: 0.35rem 1rem;
    font-size: 0.875rem;
    min-width: 180px;
    transition: background var(--dg-transition), border-color var(--dg-transition);
}

.dg-navbar .dg-search-input::placeholder {
    color: rgba(255,255,255,0.55);
}

.dg-navbar .dg-search-input:focus {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    outline: none;
    box-shadow: none;
}

.dg-navbar .dg-cart-btn {
    background: var(--dg-accent);
    border: none;
    color: #fff;
    border-radius: 2rem;
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: background var(--dg-transition);
    text-decoration: none;
}

.dg-navbar .dg-cart-btn:hover {
    background: var(--dg-accent-hover);
    color: #fff;
}

.dg-navbar .dg-cart-count {
    background: #fff;
    color: var(--dg-accent);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mobile nav */
.dg-navbar .navbar-toggler {
    border-color: rgba(255,255,255,0.4);
    padding: 0.35rem 0.6rem;
}

.dg-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%28255%2C255%2C255%2C0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================================
   Flash Messages
============================================================ */
.dg-flash {
    border-radius: 0;
    border-left: 4px solid;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
}

/* ============================================================
   Hero Section
============================================================ */
.dg-hero {
    background: linear-gradient(135deg, var(--dg-primary) 0%, #0f2447 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.dg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.dg-hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dg-accent);
    margin-bottom: 0.75rem;
    display: block;
}

.dg-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.dg-hero .dg-hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.65;
}

.dg-hero .dg-hero-cta-primary {
    background: var(--dg-accent);
    border: none;
    color: #fff;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--dg-radius);
    text-decoration: none;
    display: inline-block;
    transition: background var(--dg-transition), transform var(--dg-transition);
}

.dg-hero .dg-hero-cta-primary:hover {
    background: var(--dg-accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.dg-hero .dg-hero-cta-secondary {
    color: rgba(255,255,255,0.85);
    border: 2px solid rgba(255,255,255,0.35);
    padding: 0.8rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--dg-radius);
    text-decoration: none;
    display: inline-block;
    transition: border-color var(--dg-transition), color var(--dg-transition);
}

.dg-hero .dg-hero-cta-secondary:hover {
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}

.dg-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.dg-hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

.dg-hero-trust-item i {
    color: var(--dg-accent);
    font-size: 1rem;
}

/* ============================================================
   Section Utilities
============================================================ */
.dg-section {
    padding: 4rem 0;
}

.dg-section-sm {
    padding: 2.5rem 0;
}

.dg-section-white {
    background: var(--dg-bg-white);
}

.dg-section-gray {
    background: var(--dg-bg);
}

.dg-section-dark {
    background: var(--dg-primary);
    color: #fff;
}

.dg-section-header {
    margin-bottom: 2.5rem;
}

.dg-section-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dg-accent);
    display: block;
    margin-bottom: 0.5rem;
}

.dg-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--dg-charcoal);
    margin-bottom: 0.5rem;
}

.dg-section-subtitle {
    color: var(--dg-text-secondary);
    font-size: 1rem;
    max-width: 560px;
}

.dg-section-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dg-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.dg-section-link:hover {
    color: var(--dg-accent);
}

/* ============================================================
   Product Cards
============================================================ */
.dg-product-card {
    background: var(--dg-card-bg);
    border: 1px solid var(--dg-border);
    border-radius: var(--dg-radius-lg);
    box-shadow: var(--dg-shadow-sm);
    transition: box-shadow var(--dg-transition), transform var(--dg-transition);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dg-product-card:hover {
    box-shadow: var(--dg-shadow-lg);
    transform: translateY(-3px);
}

.dg-product-card a {
    text-decoration: none;
    color: inherit;
}

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

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

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

.dg-product-card .dg-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dg-primary-light);
    color: var(--dg-primary);
    font-size: 2.5rem;
}

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

.dg-product-card .dg-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dg-charcoal);
    line-height: 1.35;
    /* Clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dg-product-card .dg-card-price-wrap {
    margin-top: auto;
    padding-top: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.dg-product-card .dg-card-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dg-charcoal);
}

.dg-product-card .dg-card-price-sale {
    color: var(--dg-accent);
}

.dg-product-card .dg-card-price-original {
    font-size: 0.82rem;
    color: var(--dg-text-muted);
    text-decoration: line-through;
}

.dg-product-card .dg-card-footer {
    padding: 0.75rem 1.1rem;
    border-top: 1px solid var(--dg-border-light);
    margin-top: 0;
}

.dg-product-card .dg-card-footer .btn {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
}

/* Quick-add hover overlay */
.dg-product-card .dg-quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26,58,107,0.92);
    color: #fff;
    text-align: center;
    padding: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.25s ease;
    cursor: pointer;
    border: none;
    width: 100%;
}

.dg-product-card:hover .dg-quick-add {
    transform: translateY(0);
}

/* ============================================================
   Badges
============================================================ */
.dg-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.22em 0.6em;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.dg-badge-sale        { background: var(--dg-accent);  color: #fff; }
.dg-badge-new         { background: var(--dg-green);   color: #fff; }
.dg-badge-featured    { background: var(--dg-primary); color: #fff; }
.dg-badge-in-stock    { background: #d4edda; color: #155724; }
.dg-badge-out-of-stock{ background: #f8d7da; color: #721c24; }
.dg-badge-backorder   { background: #fff3cd; color: #856404; }
.dg-badge-local       { background: var(--dg-primary-light); color: var(--dg-primary); }

/* ============================================================
   Category Cards
============================================================ */
.dg-category-card {
    background: var(--dg-card-bg);
    border: 1px solid var(--dg-border);
    border-radius: var(--dg-radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--dg-charcoal);
    display: block;
    height: 100%;
    transition: box-shadow var(--dg-transition), transform var(--dg-transition), border-color var(--dg-transition);
    box-shadow: var(--dg-shadow-sm);
}

.dg-category-card:hover {
    box-shadow: var(--dg-shadow);
    transform: translateY(-2px);
    border-color: var(--dg-primary);
    color: var(--dg-primary);
    text-decoration: none;
}

.dg-category-card .dg-cat-icon {
    font-size: 2rem;
    color: var(--dg-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.dg-category-card .dg-cat-name {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: inherit;
}

.dg-category-card .dg-cat-count {
    font-size: 0.78rem;
    color: var(--dg-text-muted);
}

/* Category card with real product image */
.dg-category-card-img {
    padding: 0;
    overflow: hidden;
}

.dg-category-card-img .dg-cat-name,
.dg-category-card-img .dg-cat-count {
    padding: 0 0.75rem;
}

.dg-category-card-img .dg-cat-name {
    padding-top: 0.65rem;
}

.dg-category-card-img .dg-cat-count {
    padding-bottom: 0.75rem;
}

.dg-cat-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--dg-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dg-cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.dg-category-card-img:hover .dg-cat-img {
    transform: scale(1.05);
}

.dg-cat-img-placeholder {
    background: var(--dg-primary-light);
}

.dg-cat-img-placeholder .dg-cat-icon {
    font-size: 2.5rem;
    color: var(--dg-primary);
    margin-bottom: 0;
}

/* ============================================================
   Store Story / Info Blocks
============================================================ */
.dg-story-block {
    background: var(--dg-bg-white);
    border-radius: var(--dg-radius-lg);
    overflow: hidden;
    box-shadow: var(--dg-shadow);
}

.dg-story-img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.dg-story-content {
    padding: 2.5rem;
}

.dg-value-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.dg-value-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--dg-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dg-primary);
    font-size: 1.1rem;
}

.dg-value-text h6 {
    font-weight: 700;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.dg-value-text p {
    font-size: 0.875rem;
    color: var(--dg-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   Why Shop Local / Community Banner
============================================================ */
.dg-community-banner {
    background: linear-gradient(135deg, var(--dg-primary) 0%, #0f2447 100%);
    color: #fff;
    border-radius: var(--dg-radius-lg);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.dg-community-banner::after {
    content: '"';
    position: absolute;
    right: 2rem;
    top: -1rem;
    font-size: 10rem;
    color: rgba(255,255,255,0.06);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.dg-community-banner h2 {
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    margin-bottom: 1rem;
}

.dg-community-banner p {
    color: rgba(255,255,255,0.82);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 600px;
}

.dg-community-banner .dg-community-cta {
    background: var(--dg-accent);
    color: #fff;
    border: none;
    padding: 0.75rem 1.75rem;
    font-weight: 700;
    border-radius: var(--dg-radius);
    text-decoration: none;
    display: inline-block;
    margin-top: 1.5rem;
    transition: background var(--dg-transition);
}

.dg-community-banner .dg-community-cta:hover {
    background: var(--dg-accent-hover);
    color: #fff;
}

/* ============================================================
   Product Detail Page
============================================================ */
.dg-product-gallery img {
    width: 100%;
    border-radius: var(--dg-radius-lg);
    border: 1px solid var(--dg-border);
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.dg-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.dg-thumb-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.375rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--dg-transition);
}

.dg-thumb-grid img.active,
.dg-thumb-grid img:hover {
    border-color: var(--dg-primary);
}

.dg-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dg-charcoal);
    line-height: 1;
}

.dg-detail-price-sale {
    color: var(--dg-accent);
}

.dg-detail-compare {
    font-size: 1rem;
    color: var(--dg-text-muted);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.dg-add-to-cart-btn {
    background: var(--dg-primary) !important;
    border: none !important;
    color: #fff !important;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--dg-radius);
    width: 100%;
    transition: background var(--dg-transition), transform var(--dg-transition), box-shadow var(--dg-transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: center;
    line-height: 1.5;
}

.dg-add-to-cart-btn:hover {
    background: #1e4a8a !important;
    color: #fff !important;
    transform: translateY(-1px);
    text-decoration: none;
}

.dg-add-to-cart-btn:active {
    transform: translateY(0);
}

.dg-add-to-cart-btn:focus-visible {
    outline: 3px solid #6fa3e0;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(26,58,107,0.25);
}

/* ============================================================
   Variation Selector
============================================================ */
.dg-variation-btn {
    border: 2px solid var(--dg-border);
    background: var(--dg-card-bg);
    border-radius: 0.375rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--dg-transition), background var(--dg-transition), color var(--dg-transition);
    color: var(--dg-text);
}

.dg-variation-btn:hover,
.dg-variation-btn.active {
    border-color: var(--dg-primary);
    background: var(--dg-primary-light);
    color: var(--dg-primary);
}

.dg-variation-btn.out-of-stock {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* ============================================================
   Fulfillment Badges
============================================================ */
.dg-fulfillment-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--dg-text-secondary);
    background: var(--dg-bg);
    border: 1px solid var(--dg-border);
    border-radius: 2rem;
    padding: 0.3rem 0.75rem;
}

.dg-fulfillment-item i {
    color: var(--dg-primary);
}

/* ============================================================
   Cart
============================================================ */
.dg-cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--dg-radius);
    border: 1px solid var(--dg-border);
}

.dg-qty-input {
    width: 64px;
    text-align: center;
    border: 1px solid var(--dg-border);
    border-radius: var(--dg-radius);
    padding: 0.35rem 0.5rem;
    font-size: 0.9rem;
}

.dg-cart-table th {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dg-text-muted);
    border-bottom: 2px solid var(--dg-border);
    padding-bottom: 0.75rem;
}

.dg-cart-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--dg-border-light);
}

.dg-cart-trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--dg-text-muted);
}

.dg-cart-trust-item i {
    color: var(--dg-green);
    font-size: 0.9rem;
}

/* ============================================================
   Order Summary (Cart & Checkout)
============================================================ */
.dg-order-summary {
    background: var(--dg-card-bg);
    border: 1px solid var(--dg-border);
    border-radius: var(--dg-radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: 80px;
}

.dg-order-summary-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--dg-text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--dg-border-light);
}

.dg-order-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--dg-text-secondary);
}

.dg-order-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dg-charcoal);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--dg-border);
}

.dg-checkout-btn {
    background: var(--dg-accent) !important;
    border: none !important;
    color: #fff !important;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--dg-radius);
    width: 100%;
    margin-top: 1.25rem;
    transition: background var(--dg-transition), box-shadow var(--dg-transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: center;
}
.dg-checkout-btn:hover,
.dg-checkout-btn:active {
    background: var(--dg-accent-hover) !important;
    color: #fff !important;
    text-decoration: none;
}
.dg-checkout-btn:focus-visible {
    outline: 3px solid #e07a72;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(192,57,43,0.25);
}

/* ============================================================
   Checkout
============================================================ */
.dg-checkout-step {
    background: var(--dg-card-bg);
    border: 1px solid var(--dg-border);
    border-radius: var(--dg-radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.dg-checkout-step-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dg-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dg-checkout-step-title .dg-step-num {
    width: 26px;
    height: 26px;
    background: var(--dg-primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.dg-checkout-progress {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-radius: var(--dg-radius);
    overflow: hidden;
    border: 1px solid var(--dg-border);
}

.dg-checkout-progress-step {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--dg-bg);
    color: var(--dg-text-muted);
    border-right: 1px solid var(--dg-border);
}

.dg-checkout-progress-step:last-child {
    border-right: none;
}

.dg-checkout-progress-step.active {
    background: var(--dg-primary);
    color: #fff;
}

.dg-checkout-trust {
    background: var(--dg-primary-light);
    border: 1px solid rgba(26,58,107,0.15);
    border-radius: var(--dg-radius);
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    color: var(--dg-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ============================================================
   Confirmation Page
============================================================ */
.dg-confirmation-icon {
    font-size: 4rem;
    color: var(--dg-green);
}

.dg-confirmation-card {
    background: var(--dg-card-bg);
    border: 1px solid var(--dg-border);
    border-radius: var(--dg-radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--dg-shadow);
}

/* ============================================================
   Category / Products Page
============================================================ */
.dg-category-header {
    background: var(--dg-primary);
    color: #fff;
    padding: 2.5rem 0 2rem;
    margin-bottom: 0;
}

.dg-category-header h1 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 0.4rem;
}

.dg-category-header p {
    color: rgba(255,255,255,0.78);
    font-size: 0.95rem;
    margin: 0;
}

.dg-category-header .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
}

.dg-category-header .breadcrumb-item.active {
    color: rgba(255,255,255,0.9);
}

.dg-category-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.45);
}

.dg-filter-bar {
    background: var(--dg-bg-white);
    border-bottom: 1px solid var(--dg-border);
    padding: 0.85rem 0;
    position: sticky;
    top: 68px;
    z-index: 100;
}

.dg-filter-bar .dg-result-count {
    font-size: 0.85rem;
    color: var(--dg-text-muted);
}

.dg-filter-bar .dg-sort-select {
    font-size: 0.85rem;
    border: 1px solid var(--dg-border);
    border-radius: var(--dg-radius);
    padding: 0.35rem 0.75rem;
    color: var(--dg-text);
    background: var(--dg-bg-white);
}

/* ============================================================
   Empty State
============================================================ */
.dg-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--dg-text-muted);
}

.dg-empty-state i {
    font-size: 3.5rem;
    color: var(--dg-border);
    margin-bottom: 1rem;
    display: block;
}

.dg-empty-state h4 {
    color: var(--dg-text-secondary);
    margin-bottom: 0.5rem;
}

.dg-empty-state p {
    font-size: 0.9rem;
    max-width: 360px;
    margin: 0 auto 1.5rem;
}

/* ============================================================
   Footer
============================================================ */
.dg-footer {
    background: var(--dg-charcoal);
    color: rgba(255,255,255,0.75);
    padding: 4rem 0 0;
    margin-top: 5rem;
}

.dg-footer-brand img {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.dg-footer-tagline {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    max-width: 260px;
    margin-bottom: 1.25rem;
}

.dg-footer-social {
    display: flex;
    gap: 0.6rem;
}

.dg-footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background var(--dg-transition), color var(--dg-transition);
}

.dg-footer-social a:hover {
    background: var(--dg-accent);
    color: #fff;
}

.dg-footer h6 {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.dg-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dg-footer ul li {
    margin-bottom: 0.5rem;
}

.dg-footer ul li a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--dg-transition);
}

.dg-footer ul li a:hover {
    color: #fff;
}

.dg-footer-hours {
    font-size: 0.82rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
}

.dg-footer-hours strong {
    color: rgba(255,255,255,0.88);
    font-weight: 600;
}

.dg-footer-address {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

.dg-footer-address strong {
    color: rgba(255,255,255,0.88);
}

.dg-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dg-footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    margin: 0;
}

.dg-footer-community {
    background: var(--dg-accent);
    color: #fff;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ============================================================
   Breadcrumb
============================================================ */
.breadcrumb {
    font-size: 0.82rem;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--dg-primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--dg-accent);
}

/* ============================================================
   Buttons — Override Bootstrap defaults
============================================================ */
.btn-dg-primary {
    background: var(--dg-primary) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--dg-radius);
    transition: background var(--dg-transition), transform var(--dg-transition), box-shadow var(--dg-transition);
}

.btn-dg-primary:hover,
.btn-dg-primary:active {
    background: #1e4a8a !important;
    color: #fff !important;
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-dg-primary:focus-visible {
    outline: 3px solid #6fa3e0;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(26,58,107,0.25);
}

.btn-dg-accent {
    background: var(--dg-accent) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--dg-radius);
    transition: background var(--dg-transition);
}

.btn-dg-accent:hover,
.btn-dg-accent:active {
    background: var(--dg-accent-hover) !important;
    color: #fff !important;
    text-decoration: none;
}

.btn-dg-accent:focus-visible {
    outline: 3px solid #e07a72;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(192,57,43,0.25);
}

.btn-dg-outline {
    background: transparent !important;
    border: 2px solid var(--dg-primary) !important;
    color: var(--dg-primary) !important;
    font-weight: 600;
    border-radius: var(--dg-radius);
    transition: background var(--dg-transition), color var(--dg-transition);
}

.btn-dg-outline:hover,
.btn-dg-outline:active {
    background: var(--dg-primary) !important;
    color: #fff !important;
    text-decoration: none;
}

.btn-dg-outline:focus-visible {
    outline: 3px solid #6fa3e0;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(26,58,107,0.25);
}

/* ============================================================
   Pagination
============================================================ */
.pagination .page-link {
    color: var(--dg-primary);
    border-color: var(--dg-border);
    font-size: 0.875rem;
}

.pagination .page-item.active .page-link {
    background: var(--dg-primary);
    border-color: var(--dg-primary);
    color: #fff;
}

.pagination .page-link:hover {
    background: var(--dg-primary-light);
    color: var(--dg-primary);
}

/* ============================================================
   Form Controls — Storefront
============================================================ */
.form-control:focus,
.form-select:focus {
    border-color: var(--dg-primary);
    box-shadow: 0 0 0 0.2rem rgba(26,58,107,0.15);
}

/* ============================================================
   Accessibility — Focus States
============================================================ */
:focus-visible {
    outline: 3px solid var(--dg-accent);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--dg-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 991.98px) {
    .dg-navbar .dg-search-input {
        min-width: unset;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .dg-navbar .nav-link {
        padding: 0.6rem 0 !important;
        border-bottom: none;
    }

    .dg-filter-bar {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .dg-hero {
        padding: 3.5rem 0 3rem;
        text-align: center;
    }

    .dg-hero .dg-hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .dg-hero-trust {
        justify-content: center;
    }

    .dg-story-content {
        padding: 1.75rem;
    }

    .dg-community-banner {
        padding: 2rem 1.5rem;
    }

    .dg-section {
        padding: 2.5rem 0;
    }

    .dg-footer {
        margin-top: 3rem;
    }

    .dg-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .dg-product-card .dg-card-title {
        font-size: 0.85rem;
    }

    .dg-cart-item-img {
        width: 60px;
        height: 60px;
    }

    .dg-checkout-step {
        padding: 1.25rem;
    }

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