@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Montserrat:wght@200;300;400;500;600;700&display=swap');

/* ==========================================================================
   ARA GOLF - QUIET LUXURY DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Color Palette */
    --primary-red: #AC001C;
    --secondary-red: #8B0224;
    --gold: #F5BF03;
    --gold-light: rgba(245, 191, 3, 0.1);
    --black: #000000;
    --white: #FFFFFF;
    
    /* Elegant Grays */
    --gray-50: #FAF9F6;  /* Alabaster background */
    --gray-100: #F3F2EE; /* Spacious border & soft fields */
    --gray-200: #E4E2DD;
    --gray-500: #4E4D4B; /* Darker gray for enhanced readability */
    --gray-800: #2C2B29;
    --gray-900: #151413;
    
    /* Shadows */
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-lifted: 0 16px 40px rgba(0, 0, 0, 0.06);
    --shadow-sheen: 0 20px 50px rgba(172, 0, 28, 0.05);
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', Helvetica, Arial, sans-serif;
    
    /* Transitions */
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--white);
    color: var(--gray-900);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0.03em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Spacious Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--black);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons - Quiet Luxury Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid var(--black);
    cursor: pointer;
    position: relative;
    background: transparent;
    overflow: hidden;
    transition: var(--transition-slow);
    z-index: 1;
}

.btn-primary {
    background-color: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-red);
    transform: translateY(100%);
    transition: var(--transition-slow);
    z-index: -1;
}

.btn-primary:hover::before {
    transform: translateY(0);
}

.btn-primary:hover {
    border-color: var(--primary-red);
}

.btn-secondary {
    background-color: transparent;
    color: var(--black);
    border-color: var(--black);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    transform: translateY(100%);
    transition: var(--transition-slow);
    z-index: -1;
}

.btn-secondary:hover::before {
    transform: translateY(0);
}

.btn-secondary:hover {
    color: var(--white);
}

.btn-accent {
    background-color: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.btn-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-red);
    transform: translateY(100%);
    transition: var(--transition-slow);
    z-index: -1;
}

.btn-accent:hover::before {
    transform: translateY(0);
}

.btn-accent:hover {
    border-color: var(--secondary-red);
}

/* ==========================================================================
   LIFTED BLOCKS WITH A SHEEN FINISH
   ========================================================================== */

.sheen-block {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 50%, #f4f3f0 100%) !important;
    border: 1px solid rgba(172, 0, 28, 0.06) !important;
    border-radius: 8px;
    /* Pronounced elevated lifted shadow even at rest */
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.07), 
        0 8px 20px rgba(0, 0, 0, 0.04),
        0 4px 10px rgba(172, 0, 28, 0.015),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    position: relative;
    overflow: hidden;
    transform: translateY(-4px);
    transition: var(--transition-slow);
}

/* Metallic Light Reflex Sheen overlay always present at an angle, sweeps on hover */
.sheen-block::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 30%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.5) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    transition: var(--transition-slow);
    pointer-events: none;
    z-index: 2;
}

.sheen-block:hover {
    transform: translateY(-14px) !important;
    /* Highly pronounced lifted shadow & soft brand red hue */
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.12), 
        0 15px 30px rgba(172, 0, 28, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(245, 191, 3, 0.55) !important; /* Elegant gold border touch on hover */
}

.sheen-block:hover::after {
    left: 200%;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   ANIMATIONS (SOPHISTICATED FADE INS)
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay classes */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

header {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-medium);
}

.header-top {
    background-color: var(--black);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 60px;
    width: auto;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--black);
    text-transform: uppercase;
}

.brand-text span {
    color: var(--primary-red);
}

nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.5rem 0;
    position: relative;
    color: var(--gray-800);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: var(--transition-medium);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--black);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.action-icon {
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
}

.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary-red);
    color: var(--white);
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: 700;
}

.user-tag {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    border: 1px solid var(--gray-200);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background-color: var(--gray-50);
}

.user-tag.role-admin { border-color: var(--primary-red); color: var(--primary-red); }
.user-tag.role-manager { border-color: var(--secondary-red); color: var(--secondary-red); }
.user-tag.role-subscriber { border-color: var(--gold); color: #c49600; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1px;
    background-color: var(--black);
    transition: var(--transition-fast);
}

/* ==========================================================================
   HERO / BILLBOARD
   ========================================================================== */

.hero {
    height: calc(100vh - 140px);
    min-height: 550px;
    position: relative;
    background-color: var(--gray-50);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 40%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 550px;
}

.hero-sub {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-title span {
    font-weight: 600;
    color: var(--primary-red);
}

.hero-desc {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--gray-800);
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

/* ==========================================================================
   ACADEMY PORTAL PREVIEW (THE ARA PATH)
   ========================================================================== */

.section-padding {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.section-desc {
    font-weight: 300;
    color: var(--gray-500);
}

.academy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.tier-card {
    padding: 2.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 4px;
    height: 100%;
}

.tier-badge {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--white);
    background-color: var(--black);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.tier-card:nth-child(2) .tier-badge {
    background-color: var(--primary-red);
}

.tier-card:nth-child(3) .tier-badge {
    background-color: var(--gold);
    color: var(--black);
    font-weight: 700;
}

.tier-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.tier-focus {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-500);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.tier-divider {
    width: 60px;
    height: 1px;
    background-color: var(--gray-200);
    margin-bottom: 2.5rem;
}

.tier-deliverables {
    list-style: none;
    margin-bottom: 3.5rem;
    flex-grow: 1;
}

.tier-deliverables li {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--gray-800);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
    text-align: left;
}

.tier-deliverables li::before {
    content: '•';
    color: var(--primary-red);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.tier-price {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: var(--black);
    margin-bottom: 2rem;
}

.tier-price span {
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--gray-500);
}

/* ==========================================================================
   PRODUCT CATALOG (SHOP)
   ========================================================================== */

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3.5rem;
    margin-top: 4rem;
}

/* Filters Sidebar */
.filters-sidebar {
    position: sticky;
    top: 140px;
    height: calc(100vh - 180px);
    overflow-y: auto;
    padding-right: 1.5rem;
}

.filters-sidebar::-webkit-scrollbar {
    width: 4px;
}
.filters-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--gray-200);
    border-radius: 4px;
}

.filter-group {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 2rem;
}

.filter-title {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.filter-item label {
    font-size: 0.85rem;
    color: var(--gray-800);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 300;
    transition: var(--transition-fast);
}

.filter-item label:hover {
    color: var(--primary-red);
}

.filter-item input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--gray-200);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.filter-item input[type="checkbox"]:checked {
    background-color: var(--black);
    border-color: var(--black);
}

.filter-item input[type="checkbox"]:checked::after {
    content: '✓';
    color: var(--white);
    font-size: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Product Grid */
.products-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 1.5rem;
}

.search-bar {
    position: relative;
    max-width: 350px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1.2rem 0.8rem 2.8rem;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-fast);
}

.search-input:focus {
    border-color: var(--black);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Product Card - Lifted Block */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--gray-50);
    aspect-ratio: 1 / 1;
    border-bottom: 1px solid var(--gray-100);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: var(--transition-slow);
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-red);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 2px;
    z-index: 3;
}

.product-card-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    gap: 1px;
    transition: var(--transition-medium);
    z-index: 3;
}

.product-card:hover .product-card-actions {
    bottom: 0;
}

.card-action-btn {
    flex: 1;
    padding: 1rem 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--white);
    border: none;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
}

.card-action-btn:hover {
    background-color: var(--primary-red);
}

.product-info {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-500);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--black);
    margin-top: auto;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */

.product-detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    margin-top: 2rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-main-img-wrapper {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-100);
    aspect-ratio: 1.1 / 1;
    overflow: hidden;
    border-radius: 4px;
}

.product-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    transition: var(--transition-slow);
}

.product-main-img-wrapper:hover .product-main-img {
    transform: scale(1.05);
}

.product-specs {
    margin-top: 3rem;
    border-t: 1px solid var(--gray-100);
    padding-top: 2rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--gray-50);
    font-size: 0.85rem;
}

.spec-name {
    font-weight: 500;
    color: var(--gray-800);
}

.spec-val {
    color: var(--gray-500);
}

.detail-info {
    padding-top: 1rem;
}

.detail-cat {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.detail-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.detail-price {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    color: var(--black);
    margin-bottom: 2.5rem;
}

.detail-desc {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--gray-800);
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 2.5rem;
}

.option-group {
    margin-bottom: 2.5rem;
}

.option-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.size-selector {
    display: flex;
    gap: 0.8rem;
}

.size-btn {
    width: 48px;
    height: 48px;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.size-btn.active, .size-btn:hover {
    border-color: var(--black);
    background-color: var(--black);
    color: var(--white);
}

.purchase-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
}

.qty-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.qty-btn:hover {
    background-color: var(--gray-50);
}

.qty-input {
    width: 40px;
    border: none;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    outline: none;
}

.purchase-actions .btn {
    flex-grow: 1;
}

/* ==========================================================================
   CART & CHECKOUT
   ========================================================================== */

.cart-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 1.5rem 1rem;
    border-bottom: 2px solid var(--gray-100);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.cart-table td {
    padding: 2rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.cart-product-cell {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-prod-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    background-color: var(--gray-50);
    border-radius: 4px;
}

.cart-prod-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.cart-prod-meta {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.cart-remove-link {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-red);
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    display: inline-block;
}

.summary-card {
    padding: 3rem;
    border-radius: 4px;
}

.summary-title {
    font-size: 1.8rem;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.summary-row.total {
    border-top: 1px solid var(--gray-200);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Checkout Page Grid */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 5rem;
    margin-top: 3rem;
}

.checkout-section {
    margin-bottom: 4rem;
}

.checkout-sec-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 0.8rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-span-2 {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--black);
}

/* Wallet Card Selector */
.card-selectors {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.card-selector-item {
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.card-selector-item.active, .card-selector-item:hover {
    border-color: var(--black);
    background-color: var(--gray-50);
}

.card-selector-item input[type="radio"] {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.card-selector-item .card-brand {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.card-selector-item .card-num {
    font-size: 0.8rem;
    color: var(--gray-800);
    letter-spacing: 0.1em;
}

/* Credits apply block */
.credits-block {
    background-color: var(--gold-light);
    border: 1px solid var(--gold);
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.credits-info h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: #8a6a00;
}

.credits-info p {
    font-size: 0.75rem;
    color: var(--gray-800);
}

/* ==========================================================================
   USER DASHBOARD & MEMBER PORTAL
   ========================================================================== */

.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.dashboard-sidebar {
    border-right: 1px solid var(--gray-100);
    padding-right: 2rem;
}

.profile-card {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--gray-100);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-family: var(--font-heading);
    margin: 0 auto 1.5rem auto;
    border: 2px solid var(--gold);
}

.profile-name {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.profile-role {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-red);
}

.db-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.db-menu-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.db-menu-link:hover, .db-menu-link.active {
    background-color: var(--gray-50);
    color: var(--primary-red);
}

/* Dashboard Modules */
.db-module {
    display: none;
}

.db-module.active {
    display: block;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.db-header {
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.db-title {
    font-size: 2.4rem;
}

/* Info Cards Row */
.info-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-bottom: 3.5rem;
}

.info-card {
    padding: 2.5rem 2rem;
}

.info-card-lbl {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.info-card-val {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 400;
}

/* Order History & Tables */
.db-table {
    width: 100%;
    border-collapse: collapse;
}

.db-table th {
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid var(--gray-100);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.db-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.85rem;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.status-completed { background-color: rgba(40, 167, 69, 0.1); color: #28a745; }
.status-pending { background-color: rgba(255, 193, 7, 0.1); color: #c49600; }
.status-shipped { background-color: rgba(0, 123, 255, 0.1); color: #007bff; }
.status-refunded { background-color: rgba(220, 53, 69, 0.1); color: var(--primary-red); }

/* Academy Calendar & Schedule */
.calendar-widget {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 4px;
    padding: 2.5rem;
    margin-bottom: 3.5rem;
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.cal-title {
    font-size: 1.4rem;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.8rem;
    text-align: center;
}

.cal-day-lbl {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-500);
}

.cal-date {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: 4px;
    border: 1px solid transparent;
    position: relative;
}

.cal-date.active {
    border-color: var(--gold);
    background-color: var(--white);
    font-weight: 600;
}

.cal-date.has-lesson::after {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-red);
}

/* Coach feedback items */
.feedback-box {
    background-color: var(--white);
    border-left: 3px solid var(--primary-red);
    padding: 1.8rem;
    margin-bottom: 2rem;
    border-radius: 0 4px 4px 0;
}

.feedback-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 600;
}

/* Drills Video Catalog */
.drills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.drill-card {
    overflow: hidden;
}

.drill-video-thumb {
    position: relative;
    background-color: var(--black);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
}

.drill-video-thumb i {
    transition: var(--transition-fast);
}

.drill-video-thumb:hover i {
    transform: scale(1.2);
    color: var(--gold);
}

.drill-info {
    padding: 1.5rem;
}

/* ==========================================================================
   INVOICE PRINT PAGE
   ========================================================================== */

.invoice-container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 4rem;
    border: 1px solid var(--gray-200);
    background-color: var(--white);
    box-shadow: var(--shadow-subtle);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid var(--black);
    padding-bottom: 2.5rem;
    margin-bottom: 3rem;
}

.invoice-meta {
    text-align: right;
}

.invoice-meta h2 {
    font-size: 2.4rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.invoice-bill-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.bill-col h3 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--gray-500);
}

.bill-col p {
    font-size: 0.9rem;
    line-height: 1.6;
}

@media print {
    body {
        background-color: var(--white);
        color: var(--black);
    }
    .invoice-container {
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
        max-width: 100%;
    }
    .print-btn {
        display: none;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================================================== */

@media (max-width: 1200px) {
    .container {
        padding: 0 2.5rem;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .academy-grid, .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .header-main {
        height: 80px;
    }
    .hamburger {
        display: flex;
    }
    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: var(--transition-medium);
        z-index: 99;
        border-top: 1px solid var(--gray-100);
    }
    nav.active {
        left: 0;
    }
    .hero {
        flex-direction: column;
        justify-content: center;
        padding: 4rem 0;
        height: auto;
        min-height: auto;
    }
    .hero-overlay {
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.85);
    }
    .hero-bg-img {
        width: 100%;
        height: 100%;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2rem;
    }
    .hero-desc {
        max-width: 100%;
    }
    .shop-layout, .cart-layout, .checkout-layout, .dashboard-layout, .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .filters-sidebar {
        position: relative;
        top: 0;
        height: auto;
        padding-right: 0;
    }
    .info-cards-row {
        grid-template-columns: 1fr;
    }
    
    /* Stack custom split layouts to prevent text/image overlap */
    #manifesto-section .container,
    #ambassador-section .container > div,
    #coach-spotlight-section {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    .academy-grid, .product-grid, .drills-grid, .card-selectors, .form-grid {
        grid-template-columns: 1fr;
    }
    .form-span-2 {
        grid-column: span 1;
    }
    .section-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   ADDITIONAL MOBILE RESPONSIVENESS OVERRIDES
   ========================================================================== */
@media (max-width: 991px) {
    .desktop-only-user-tag {
        display: none !important;
    }
    .mobile-only-user-tag {
        display: inline-flex !important;
        margin: 1.5rem auto 0 auto !important;
        text-align: center;
        width: fit-content;
    }
    .hero {
        display: flex !important;
        flex-direction: column-reverse !important;
        height: auto !important;
        min-height: auto !important;
        padding: 0 !important;
        background-color: var(--white) !important;
    }
    .hero-overlay {
        display: none !important;
    }
    .hero-content {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 3rem 1.5rem !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .hero-bg-img {
        position: relative !important;
        width: 100% !important;
        height: 320px !important;
        object-fit: cover !important;
        display: block !important;
    }
}

@media (max-width: 768px) {
    #brand-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

.btn {
    white-space: nowrap !important;
}

@media (max-width: 576px) {
    .btn {
        font-size: 0.7rem !important;
        padding: 0.8rem 1.5rem !important;
        letter-spacing: 0.1em !important;
    }
    .footer-bottom {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
}

/* ==========================================================================
   MOBILE COLLAPSIBLE FILTERS
   ========================================================================== */
.mobile-filter-btn {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.6rem;
    background-color: var(--black);
    color: var(--white);
    border: 2px solid var(--gold);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.mobile-filter-btn:hover {
    background-color: var(--gold);
    color: var(--black);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.mobile-filter-btn .toggle-icon {
    transition: transform 0.3s ease;
}

.mobile-filter-btn.active .toggle-icon {
    transform: rotate(180deg);
}

/* Pulsing outline effect to ensure high visibility */
@keyframes filter-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.mobile-filter-btn {
    animation: filter-pulse 2s infinite;
}

@media (max-width: 991px) {
    .mobile-filter-btn {
        display: flex;
    }
    .filters-sidebar form {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease;
        opacity: 0;
    }
    .filters-sidebar form.show {
        max-height: 1500px;
        opacity: 1;
        margin-top: 1rem;
    }
}

/* ==========================================================================
   BAGS GRID SHOWCASE LAYOUT
   ========================================================================== */
#bags-grid-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1200px) {
    #bags-grid-layout {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    #bags-grid-layout {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 1.5rem !important;
        padding: 0.5rem 0.5rem 2rem 0.5rem !important;
        margin: 0 -1.5rem !important; /* bleed slightly to screen edges */
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none;
    }
    #bags-grid-layout::-webkit-scrollbar {
        display: none;
    }
    #bags-grid-layout .product-card {
        flex: 0 0 280px !important;
        scroll-snap-align: start !important;
        margin-bottom: 0 !important;
    }
}
