/**
 * Copper Master Storefront - Core Design System & Tokens
 */

:root {
    --cm-copper: #b87333;
    --cm-copper-dark: #8c5222;
    --cm-copper-light: #e6a066;
    --cm-copper-soft: rgba(184, 115, 51, 0.08);
    --cm-copper-gradient: linear-gradient(135deg, #b87333 0%, #d48e46 50%, #8c5222 100%);
    --cm-brass: #c5a059;
    --cm-bronze: #8c6239;
    --cm-dark: #1a1a1a;
    --cm-charcoal: #2c2c2c;
    --cm-gray-50: #fbfbfb;
    --cm-gray-100: #f4f4f5;
    --cm-gray-200: #e4e4e7;
    --cm-gray-500: #71717a;
    --cm-gray-700: #3f3f46;
    --cm-font-heading: 'Cormorant Garamond', Garamond, Georgia, serif;
    --cm-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --cm-font-serif: 'Cormorant Garamond', Garamond, Georgia, serif;
    --cm-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --cm-radius-sm: 4px;
    --cm-radius-md: 8px;
    --cm-radius-lg: 12px;
    --cm-shadow-card: 0 4px 14px rgba(0, 0, 0, 0.06);
    --cm-shadow-hover: 0 8px 24px rgba(184, 115, 51, 0.15);
}

/* Major Editorial Headings ONLY (Cormorant Garamond 500/600) */
h1.cm-catalog-page-title,
h1.cm-hero-heading,
h1.cm-hero-title,
.cm-sec-heading,
.cm-artisan-heading,
.cm-mat-title {
    font-family: var(--cm-font-heading), serif !important;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Commerce, UI, Buttons, Inputs, Meta (Inter) */
body, p, span, button, input, select, textarea, label {
    font-family: var(--cm-font-body);
    -webkit-font-smoothing: antialiased;
}

/* Badge Pill */
.cm-badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cm-copper);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    line-height: 1;
}

/* Specific suppression of intrusive promo popups without breaking Magnific Popup Lightbox */
.mfp-wrap.wd-promo-popup-wrapper,
.wd-popup.wd-promo-popup {
    display: none !important;
}

/* Mobile Bottom Navigation Dock */
.cm-mob-dock {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    border-top: 1px solid var(--cm-gray-200);
}

@media (max-width: 768px) {
    .cm-mob-dock {
        display: flex;
    }
    body {
        padding-bottom: 60px !important;
    }
}

.cm-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--cm-gray-700);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    gap: 2px;
    padding: 6px 8px;
}

.cm-dock-item.active,
.cm-dock-item:hover {
    color: var(--cm-copper);
}

.cm-dock-cart-wrap {
    position: relative;
}

.cm-dock-badge {
    position: absolute;
    top: -6px;
    right: -10px;
}

/* Side Drawers & Backdrop */
.cm-side-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cm-side-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.cm-side-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: #ffffff;
    z-index: 10001;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cm-side-drawer.active {
    left: 0;
}

.cm-side-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--cm-gray-200);
    background: var(--cm-gray-50);
}

.cm-side-drawer-title {
    font-family: var(--cm-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--cm-copper-dark);
}

.cm-side-drawer-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--cm-gray-500);
    line-height: 1;
}

.cm-side-drawer-content {
    padding: 16px 0;
    overflow-y: auto;
}

.cm-side-nav-categories {
    display: flex;
    flex-direction: column;
}

.cm-nav-item {
    padding: 12px 20px;
    color: var(--cm-charcoal);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid var(--cm-gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease, color 0.2s ease;
}

.cm-nav-item:hover {
    background: var(--cm-copper-soft);
    color: var(--cm-copper);
}

/* Universal Hamburger Button & 3 Luxury Spans */
.cm-hamburger-btn {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4.5px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    border: 1px solid #DCD2C7 !important;
    background: #FFFFFF !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-shadow: 0 1px 3px rgba(74, 39, 23, 0.04) !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.cm-hamburger-btn span {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    background: #3D1F11 !important;
    border-radius: 2px !important;
    transition: all 0.2s ease !important;
}

.cm-hamburger-btn:hover {
    background: #F7EFE6 !important;
    border-color: #8B4A27 !important;
    transform: scale(1.04) !important;
}

.cm-hamburger-btn:hover span {
    background: #8B4A27 !important;
}

