/*
Theme Name: SEM Spirits Distribution
Theme URI: https://semspirits.com
Author: SEM Spirits Team
Author URI: https://semspirits.com
Description: Custom premium theme for SEM Spirits verified trade portal
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: Proprietary
Text Domain: sem-spirits
*/

/* ============================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================================ */
:root {
    /* Colors */
    --bg: #0b0f14;
    --card: rgba(15, 22, 32, 0.8);
    --card-solid: #0f1620;
    --stroke: #2a3442;
    --stroke-hover: rgba(214, 178, 94, 0.65);
    --text: #e9edf3;
    --muted: #b6c2d1;
    --gold: #d6b25e;
    --gold-dark: #b98c2e;
    --gold-light: #f3e7c6;
    
    /* Effects */
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 60px rgba(0, 0, 0, 0.55);
    --shadow-gold: 0 10px 30px rgba(214, 178, 94, 0.22);
    
    /* Layout */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-full: 999px;
    --max-width: 1080px;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
}

/* ============================================================================
   RESET & BASE
   ============================================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: 
        radial-gradient(1200px 900px at 15% 10%, rgba(214, 178, 94, 0.18), transparent 55%),
        radial-gradient(900px 700px at 85% 20%, rgba(69, 156, 141, 0.14), transparent 55%),
        var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ============================================================================
   LAYOUT
   ============================================================================ */
.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px;
}

/* ============================================================================
   BACKGROUND LAYERS
   ============================================================================ */
.bg-img {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg,
            rgba(9, 12, 16, 0.65) 0%,
            rgba(9, 12, 16, 0.85) 55%,
            rgba(9, 12, 16, 0.98) 100%
        ),
        url('https://images.unsplash.com/photo-1514361892635-6b07e31e75f9?auto=format&fit=crop&w=2400&q=80') center/cover no-repeat;
    filter: saturate(1.05) contrast(1.05);
}

.noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.08;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="140"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency=".9" numOctaves="3" stitchTiles="stitch"/></filter><rect width="140" height="140" filter="url(%23n)" opacity=".4"/></svg>');
    background-size: 220px 220px;
    mix-blend-mode: overlay;
}

/* ============================================================================
   HEADER
   ============================================================================ */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0 22px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand:hover .brand-logo {
    transform: scale(1.05);
}

.brand-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform var(--duration-fast) var(--ease-out);
    filter: drop-shadow(0 2px 8px rgba(214, 178, 94, 0.3));
}

.mark {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(214, 178, 94, 0.95), rgba(185, 140, 46, 0.8));
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
    transition: transform var(--duration-fast) var(--ease-out);
}

.mark::after {
    content: "";
    position: absolute;
    inset: -30% -30% auto auto;
    width: 80px;
    height: 80px;
    transform: rotate(25deg);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 58%);
    opacity: 0.65;
}

.brand h1 {
    font-size: 18px;
    margin: 0;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}

nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ============================================================================
   BUTTONS & PILLS
   ============================================================================ */
.pill {
    padding: 10px 12px;
    border: 1px solid rgba(42, 52, 66, 0.75);
    background: rgba(15, 22, 32, 0.35);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--muted);
    backdrop-filter: blur(10px);
    transition: 
        transform var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) ease,
        color var(--duration-fast) ease;
}

.pill:hover {
    transform: translateY(-1px);
    border-color: var(--stroke-hover);
    color: var(--text);
}

.pill.active {
    border-color: rgba(214, 178, 94, 0.6);
    color: var(--text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(42, 52, 66, 0.75);
    background: rgba(15, 22, 32, 0.55);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 
        transform var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) ease,
        background var(--duration-fast) ease,
        opacity var(--duration-fast) ease;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: var(--stroke-hover);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.btn.primary {
    border-color: rgba(214, 178, 94, 0.6);
    background: linear-gradient(135deg, rgba(214, 178, 94, 0.25), rgba(185, 140, 46, 0.18));
}

.btn.primary:hover:not(:disabled) {
    border-color: rgba(214, 178, 94, 0.9);
    background: linear-gradient(135deg, rgba(214, 178, 94, 0.35), rgba(185, 140, 46, 0.28));
}

/* ============================================================================
   PAGE HERO & GRID LAYOUTS
   ============================================================================ */
main.page {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding-bottom: 60px;
}

.page-hero {
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(42, 52, 66, 0.7);
    background: linear-gradient(135deg, rgba(15, 22, 32, 0.9), rgba(18, 28, 40, 0.75));
    box-shadow: var(--shadow-md);
}

.page-hero h2 {
    margin: 18px 0 12px;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.3;
}

.page-hero p {
    margin: 0;
    color: var(--muted);
}

.page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(214, 178, 94, 0.3);
    font-size: 12px;
    color: var(--gold-light);
    background: rgba(214, 178, 94, 0.08);
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
}

.info-card,
.form-card {
    border-radius: var(--radius-md);
    border: 1px solid rgba(42, 52, 66, 0.7);
    background: rgba(12, 18, 28, 0.9);
    box-shadow: var(--shadow-md);
    padding: 26px;
}

.info-card h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 22px;
}

.info-steps {
    margin: 0 0 20px 20px;
    padding: 0;
    color: var(--muted);
    line-height: 1.5;
}

.info-steps li {
    margin-bottom: 10px;
}

.info-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.info-list li {
    margin-bottom: 10px;
}

.contact-panel {
    border: 1px solid rgba(69, 156, 141, 0.4);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 18px;
    background: rgba(69, 156, 141, 0.08);
}

.contact-panel h4 {
    margin: 0 0 6px;
}

.contact-panel a {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================================================
   FORM ELEMENTS
   ============================================================================ */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.input-group {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: var(--muted);
}

.input-group span {
    font-weight: 600;
    color: var(--text);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(42, 52, 66, 0.8);
    background: rgba(10, 14, 22, 0.9);
    color: var(--text);
    font-size: 15px;
    transition: border-color var(--duration-fast) ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--gold);
}

.input-group textarea {
    resize: vertical;
    min-height: 180px;
    font-family: inherit;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

.input-group.full-width textarea {
    min-height: 180px;
    width: 100%;
}

.checkbox-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
}

.checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

.helper-text {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.helper-text a {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.helper-text.subtle {
    opacity: 0.85;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 20px 0;
}

.form-status {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(69, 156, 141, 0.55);
    background: rgba(69, 156, 141, 0.1);
    color: var(--gold-light);
    font-size: 14px;
}

/* ============================================================================
   LEGAL CONTENT
   ============================================================================ */
.legal-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.legal-nav a {
    padding: 10px 16px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(42, 52, 66, 0.7);
    background: rgba(10, 18, 26, 0.75);
    color: var(--muted);
}

.legal-nav a:hover {
    border-color: var(--stroke-hover);
    color: var(--text);
}

.legal-section {
    border-radius: var(--radius-md);
    border: 1px solid rgba(42, 52, 66, 0.75);
    background: rgba(12, 18, 28, 0.9);
    padding: 28px;
    margin-top: 24px;
    box-shadow: var(--shadow-md);
}

.legal-section h3 {
    margin-top: 0;
    font-size: 22px;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.legal-card {
    border: 1px solid rgba(214, 178, 94, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    background: rgba(214, 178, 94, 0.05);
}

.legal-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.policy-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.policy-list li {
    margin-bottom: 10px;
}

.callout {
    margin-top: 18px;
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(69, 156, 141, 0.4);
    background: rgba(69, 156, 141, 0.08);
    color: var(--muted);
}

/* ============================================================================
   AGE GATE MODAL
   ============================================================================ */

/* Scroll lock when gate is active */
html.agegate-active,
html.agegate-active body {
    overflow: hidden !important;
    height: 100% !important;
    position: fixed;
    width: 100%;
}

.agegate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: 
        opacity var(--duration-normal) ease,
        visibility var(--duration-normal) ease;
}

.agegate.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.agegate .box {
    width: min(680px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-md);
    border: 1px solid rgba(42, 52, 66, 0.8);
    background: rgba(15, 22, 32, 0.95);
    box-shadow: var(--shadow-lg);
    padding: 28px;
    animation: slideUp var(--duration-normal) var(--ease-out);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(214, 178, 94, 0.35);
    background: rgba(214, 178, 94, 0.09);
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 500;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.agegate h3 {
    margin: 18px 0 12px;
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 600;
    line-height: 1.3;
}

.agegate p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.agegate-form {
    margin-top: 20px;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.actions .btn {
    flex: 1;
    min-width: 140px;
}

.note {
    font-size: 12px;
    color: var(--muted);
    margin-top: 16px;
    line-height: 1.5;
}

.note a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.note a:hover {
    color: var(--gold-light);
}

/* ============================================================================
   HOMEPAGE SECTIONS
   ============================================================================ */
.hero {
    padding: 40px 0;
    text-align: center;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero h2 {
    font-size: clamp(32px, 5vw, 46px);
    line-height: 1.2;
    margin: 16px 0 20px;
}

.hero-lead {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: clamp(26px, 4vw, 36px);
    margin: 14px 0 10px;
}

.section-header p {
    color: var(--muted);
    font-size: 16px;
}

.products-section,
.trade-section,
.about-section {
    padding: 50px 0;
}

.product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    border: 1px solid rgba(42, 52, 66, 0.7);
    border-radius: var(--radius-md);
    background: rgba(12, 18, 28, 0.9);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.product-gallery {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: rgba(10, 14, 20, 0.6);
}

.gallery-images {
    display: flex;
    transition: transform 400ms var(--ease-out);
    height: 100%;
    width: 100%;
}

.gallery-image {
    min-width: 100%;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(214, 178, 94, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-out);
    z-index: 10;
    color: var(--bg);
    font-size: 18px;
    font-weight: bold;
}

.gallery-btn:hover {
    background: var(--gold);
    box-shadow: 0 4px 16px rgba(214, 178, 94, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.gallery-btn.prev {
    left: 12px;
}

.gallery-btn.next {
    right: 12px;
}

.gallery-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.gallery-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    border: none;
    padding: 0;
}

.gallery-indicator.active {
    background: var(--gold);
    width: 24px;
    border-radius: var(--radius-full);
}

.placeholder-image {
    border: 1px solid rgba(42, 52, 66, 0.5);
    border-radius: var(--radius-sm);
    background: rgba(10, 14, 20, 0.8);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-info h3 {
    font-size: 36px;
    margin: 0 0 4px;
    line-height: 1.2;
}

.product-origin {
    color: var(--gold);
    font-size: 14px;
    margin: 0 0 20px;
}

.product-details {
    color: var(--muted);
    line-height: 1.7;
}

.product-details p {
    margin-bottom: 12px;
}

.product-pricing {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(214, 178, 94, 0.4);
    background: rgba(214, 178, 94, 0.08);
    color: var(--gold-light);
    font-size: 14px;
}

.trade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.trade-card {
    border: 1px solid rgba(42, 52, 66, 0.7);
    border-radius: var(--radius-md);
    background: rgba(12, 18, 28, 0.9);
    padding: 24px;
    text-align: center;
}

.trade-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.trade-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.trade-card p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.trade-partners {
    margin-bottom: 40px;
}

.trade-partners h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 32px;
    color: var(--text);
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.partner-card {
    border: 1px solid rgba(42, 52, 66, 0.7);
    border-radius: var(--radius-md);
    background: rgba(12, 18, 28, 0.9);
    padding: 24px;
    text-align: center;
    transition: all var(--duration-normal) var(--ease-out);
}

.partner-card:hover {
    border-color: var(--gold);
    background: rgba(15, 22, 32, 0.95);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

.partner-icon {
    font-size: 48px;
    margin-bottom: 16px;
    filter: grayscale(0.3);
}

.partner-card h4 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--text);
}

.partner-card p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.trade-cta {
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto 32px;
    text-align: center;
    color: var(--muted);
    line-height: 1.7;
}

.about-content p {
    margin-bottom: 16px;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.value-card {
    border: 1px solid rgba(42, 52, 66, 0.7);
    border-radius: var(--radius-md);
    background: rgba(12, 18, 28, 0.9);
    padding: 24px;
    text-align: center;
}

.value-card h4 {
    margin: 0 0 10px;
    font-size: 18px;
}

.value-card p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
footer {
    border-top: 1px solid rgba(42, 52, 66, 0.5);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.9;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-col h4 {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--gold);
}

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

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--muted);
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(42, 52, 66, 0.3);
    color: var(--muted);
    font-size: 13px;
}

.footer-bottom p {
    margin: 6px 0;
}

.footer-disclaimer {
    font-size: 12px;
    opacity: 0.8;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 640px) {
    .wrap {
        padding: 16px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    nav {
        width: 100%;
        justify-content: flex-start;
    }

    .agegate .box {
        padding: 20px;
    }

    .actions {
        flex-direction: column;
    }

    .actions .btn {
        width: 100%;
    }

    .page-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .info-card,
    .form-card,
    .page-hero,
    .legal-section {
        padding: 20px;
    }

    .product-card {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 32px;
    }

    .product-gallery {
        max-width: 100%;
    }

    .gallery-container {
        height: 420px;
        max-width: 100%;
    }

    .gallery-images {
        max-width: 100%;
    }

    .gallery-image {
        max-width: 100%;
    }

    .gallery-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .trade-grid,
    .about-values {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .brand h1 {
        font-size: 16px;
    }

    .brand small {
        font-size: 12px;
    }

    .product-bottle {
        max-height: 350px;
    }

    .product-image {
        padding: 10px;
    }
}

/* ============================================================================
   REDUCED MOTION
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .agegate .box {
        animation: none;
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */
@media print {
    .agegate,
    .bg-img,
    .noise {
        display: none !important;
    }
}
/* ============================================================================
   INQUIRY PAGE OVERRIDES
   ============================================================================ */

/* Override page-grid for inquiry layout (sidebar + form) */
.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.info-card,
.form-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius-md);
    border: 1px solid rgba(42, 52, 66, 0.8);
    background: rgba(10, 15, 25, 0.94);
    padding: 26px;
    box-shadow: var(--shadow-lg);
}

.form-card .form-grid select,
.form-card .form-grid input,
.form-card textarea {
    border-radius: var(--radius-md);
    border: 1px solid rgba(42, 52, 66, 0.8);
    background: rgba(15, 22, 32, 0.92);
    color: var(--text);
    padding: 12px 14px;
    font-size: 15px;
    transition: border-color var(--duration-fast) ease;
}

.form-card .form-grid select:focus,
.form-card .form-grid input:focus,
.form-card textarea:focus {
    border-color: var(--gold);
    outline: none;
}

/* Form validation error state */
.form-card .form-grid input.error,
.form-card .form-grid select.error,
.form-card textarea.error {
    border-color: #e53e3e;
    background: rgba(229, 62, 62, 0.08);
}

.form-card textarea {
    min-height: 160px;
}

.form-card .form-actions .btn {
    border-color: rgba(214, 178, 94, 0.8);
    background: linear-gradient(135deg, rgba(214, 178, 94, 0.35), rgba(185, 140, 46, 0.25));
}

.form-card .form-status {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(69, 156, 141, 0.55);
    background: rgba(69, 156, 141, 0.1);
    color: #c0f4dd;
}

@media (max-width: 900px) {
    .page-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   PARTNER RESOURCES PAGE
   ============================================================================ */
.partner-content {
    padding: 20px 0;
}

.partner-welcome {
    text-align: center;
    margin-bottom: 40px;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(69, 156, 141, 0.5);
    background: rgba(69, 156, 141, 0.12);
    color: #7dd3c0;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partner-welcome h1 {
    font-size: clamp(28px, 5vw, 40px);
    margin: 20px 0 12px;
}

.partner-greeting {
    color: var(--muted);
    font-size: 18px;
}

.partner-meta {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.partner-section {
    margin-bottom: 48px;
}

.partner-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(42, 52, 66, 0.5);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.resource-card {
    border: 1px solid rgba(42, 52, 66, 0.7);
    border-radius: var(--radius-md);
    background: rgba(12, 18, 28, 0.9);
    padding: 24px;
    transition: all var(--duration-normal) var(--ease-out);
}

.resource-card:hover {
    border-color: var(--stroke-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.resource-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.resource-card p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.resource-tag {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(214, 178, 94, 0.15);
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.resource-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.resource-actions .btn {
    padding: 10px 14px;
    font-size: 13px;
}

.partner-custom-content {
    border-top: 1px solid rgba(42, 52, 66, 0.5);
    padding-top: 32px;
}

/* Access Denied State */
.access-denied {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.access-denied-box {
    text-align: center;
    max-width: 460px;
    padding: 48px 40px;
    border: 1px solid rgba(42, 52, 66, 0.8);
    border-radius: var(--radius-md);
    background: rgba(12, 18, 28, 0.95);
    box-shadow: var(--shadow-lg);
}

.access-icon {
    color: var(--gold);
    margin-bottom: 20px;
}

.access-denied-box h1 {
    font-size: 26px;
    margin: 0 0 12px;
}

.access-denied-box p {
    color: var(--muted);
    margin: 0 0 16px;
    line-height: 1.6;
}

.access-note {
    font-size: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(42, 52, 66, 0.3);
    margin-bottom: 24px;
}

.access-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.access-actions .btn {
    min-width: 140px;
}

@media (max-width: 640px) {
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .access-denied-box {
        padding: 32px 24px;
    }

    .access-actions {
        flex-direction: column;
    }

    .access-actions .btn {
        width: 100%;
    }
}

/* ============================================================================
   PARTNER DASHBOARD
   ============================================================================ */
.partner-dashboard {
    padding: 20px 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.dashboard-welcome h1 {
    font-size: clamp(26px, 4vw, 36px);
    margin: 12px 0 8px;
}

.dashboard-welcome .partner-greeting {
    color: var(--muted);
    font-size: 16px;
}

.dashboard-quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Stats Row */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(42, 52, 66, 0.6);
    border-radius: var(--radius-md);
    background: rgba(12, 18, 28, 0.7);
}

.stat-icon {
    font-size: 28px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.dashboard-section {
    border: 1px solid rgba(42, 52, 66, 0.7);
    border-radius: var(--radius-md);
    background: rgba(12, 18, 28, 0.9);
    padding: 24px;
}

.dashboard-order {
    grid-column: 1 / -1;
}

.section-header-inline {
    margin-bottom: 16px;
}

.section-header-inline h2 {
    font-size: 18px;
    margin: 0;
}

/* Order CTA Card */
.order-cta-card {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
}

.order-cta-content {
    flex: 1;
    min-width: 280px;
}

.order-cta-content h3 {
    margin: 0 0 12px;
    font-size: 22px;
}

.order-cta-content p {
    color: var(--muted);
    margin: 0 0 16px;
}

.order-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.order-highlights li {
    color: var(--gold-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-highlights li::before {
    content: "✓";
    color: var(--gold);
}

.order-cta-action {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-form-card {
    margin-top: 28px;
    border: 1px solid rgba(42, 52, 66, 0.6);
    border-radius: var(--radius-md);
    padding: 24px;
    background: rgba(10, 16, 24, 0.9);
}

.order-form-card.is-collapsed {
    display: none;
}

.order-form-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.order-form-note {
    margin: 0 0 18px;
    color: var(--muted);
}

.order-form .form-actions {
    margin-top: 18px;
}

.order-form-card .form-errors {
    border: 1px solid rgba(214, 106, 94, 0.6);
    background: rgba(214, 106, 94, 0.08);
    color: #f3b0a6;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 14px;
}

.order-form-card .form-errors p {
    margin: 0 0 6px;
}

.order-form-card .form-errors p:last-child {
    margin-bottom: 0;
}

/* Resource List (compact) */
.resource-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(42, 52, 66, 0.2);
    transition: all var(--duration-fast) var(--ease-out);
}

.resource-item:hover {
    background: rgba(42, 52, 66, 0.4);
    transform: translateX(4px);
}

.resource-icon {
    font-size: 20px;
}

.resource-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resource-name {
    font-weight: 500;
    font-size: 15px;
}

.resource-desc {
    font-size: 13px;
    color: var(--muted);
}

/* Invoice List */
.invoice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.invoice-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(42, 52, 66, 0.2);
    transition: all var(--duration-fast) var(--ease-out);
}

.invoice-item:hover {
    background: rgba(42, 52, 66, 0.4);
    transform: translateX(4px);
}

.invoice-icon {
    font-size: 20px;
}

.invoice-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.invoice-name {
    font-weight: 500;
    font-size: 15px;
}

.invoice-meta {
    font-size: 13px;
    color: var(--muted);
}

.invoice-tag {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(214, 178, 94, 0.15);
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.pay-now {
    margin-left: auto;
}

.invoice-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.invoice-empty .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.invoice-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.invoice-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: end;
}

.invoice-pay {
    display: flex;
    justify-content: flex-end;
}

.invoice-details summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(42, 52, 66, 0.7);
    background: rgba(12, 18, 28, 0.6);
    cursor: pointer;
    color: var(--gold-light);
    font-size: 13px;
}

.invoice-details summary:hover {
    border-color: var(--stroke-hover);
    color: var(--text);
}

.invoice-details[open] summary {
    border-color: rgba(214, 178, 94, 0.5);
}

.invoice-breakdown {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(42, 52, 66, 0.5);
    background: rgba(12, 18, 28, 0.75);
    display: grid;
    gap: 8px;
}

.break-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
}

.break-row.total {
    font-weight: 600;
    color: var(--text);
}

@media (max-width: 640px) {
    .invoice-actions {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .invoice-pay {
        justify-content: flex-start;
    }
}

/* Support Section */
.dashboard-support {
    border: 1px solid rgba(42, 52, 66, 0.5);
    border-radius: var(--radius-md);
    background: rgba(12, 18, 28, 0.6);
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.dashboard-support h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.dashboard-support p {
    color: var(--muted);
    margin: 0 0 16px;
}

.support-contacts {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.support-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.support-item strong {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
}

.support-item a {
    color: var(--gold);
}

.dashboard-footer {
    text-align: center;
}

/* ============================================================================
   PARTNER ORDER FORM
   ============================================================================ */
.partner-order {
    padding: 20px 0;
}

.order-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.order-breadcrumb a {
    color: var(--gold);
}

.breadcrumb-sep {
    color: var(--muted);
}

.order-page-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

/* Order Sidebar */
.order-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 24px;
}

.order-summary-card,
.order-help-card {
    border: 1px solid rgba(42, 52, 66, 0.7);
    border-radius: var(--radius-md);
    background: rgba(12, 18, 28, 0.9);
    padding: 20px;
}

.order-summary-card h3 {
    margin: 0 0 16px;
    font-size: 16px;
}

.summary-product {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(42, 52, 66, 0.5);
    margin-bottom: 16px;
}

.summary-product strong {
    display: block;
    margin-bottom: 4px;
}

.summary-case {
    font-size: 13px;
    color: var(--muted);
}

.summary-pricing {
    margin-bottom: 16px;
}

.price-tier {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--muted);
}

.price-tier.highlighted {
    color: var(--gold-light);
    font-weight: 500;
}

.summary-note {
    font-size: 13px;
    padding: 12px;
    background: rgba(42, 52, 66, 0.3);
    border-radius: var(--radius-sm);
}

.order-help-card h4 {
    margin: 0 0 8px;
    font-size: 15px;
}

.order-help-card p {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 12px;
}

/* Order Form Card */
.order-form-card {
    border: 1px solid rgba(42, 52, 66, 0.8);
    border-radius: var(--radius-md);
    background: rgba(10, 15, 25, 0.94);
    padding: 32px;
}

.form-header {
    margin-bottom: 28px;
}

.form-header h1 {
    font-size: clamp(24px, 4vw, 32px);
    margin: 0 0 12px;
}

.form-header p {
    color: var(--muted);
    margin: 0;
}

.order-form fieldset {
    border: none;
    padding: 0;
    margin: 0 0 28px;
}

.order-form legend {
    font-size: 16px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 16px;
    padding: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-3 {
    grid-template-columns: 2fr 1fr 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.order-form label {
    font-size: 14px;
    font-weight: 500;
}

.order-form input,
.order-form select,
.order-form textarea {
    padding: 12px 14px;
    border: 1px solid rgba(42, 52, 66, 0.8);
    border-radius: var(--radius-sm);
    background: rgba(15, 22, 32, 0.92);
    color: var(--text);
    font-size: 15px;
    transition: border-color var(--duration-fast) ease;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
    border-color: var(--gold);
    outline: none;
}

.field-hint {
    font-size: 12px;
    color: var(--muted);
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.btn.large {
    padding: 14px 28px;
    font-size: 16px;
}

.form-disclaimer {
    font-size: 12px;
    color: var(--muted);
    margin-top: 20px;
    line-height: 1.6;
}

/* Order Success State */
.order-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(69, 156, 141, 0.2);
    color: #7dd3c0;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.order-success h2 {
    margin: 0 0 12px;
}

.order-success p {
    color: var(--muted);
    margin: 0 0 24px;
}

.success-details {
    text-align: left;
    max-width: 360px;
    margin: 0 auto 24px;
    padding: 20px;
    background: rgba(42, 52, 66, 0.2);
    border-radius: var(--radius-sm);
}

.success-details p {
    margin: 0 0 12px;
    color: var(--text);
}

.success-details ol {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.success-details li {
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .order-page-grid {
        grid-template-columns: 1fr;
    }

    .order-sidebar {
        position: static;
        order: 2;
    }

    .order-form-card {
        order: 1;
    }
}

@media (max-width: 640px) {
    .dashboard-header {
        flex-direction: column;
    }

    .dashboard-quick-actions {
        width: 100%;
    }

    .dashboard-quick-actions .btn {
        flex: 1;
    }

    .order-cta-card {
        flex-direction: column;
        text-align: center;
    }

    .order-highlights {
        justify-content: center;
    }

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .order-form-card {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}
