/* ==========================================================================
   BC Pro Shop - Core Style Sheet
   ========================================================================== */

/* --- Design System & CSS Variables --- */
:root {
    --primary: #d32f2f;
    /* Rich Crimson Red */
    --primary-light: #ff1744;
    /* Vibrant Accent Red */
    --primary-dark: #b71c1c;
    /* Deep Burgundy Red */
    --primary-rgb: 211, 47, 47;

    --white: #ffffff;
    --light-grey: #f8f9fa;
    /* Soft ice-white background */
    --border-grey: #e9ecef;
    /* Light border dividers */
    --text-dark: #212529;
    /* Off-black for main text */
    --text-muted: #6c757d;
    /* Muted grey for descriptions */

    --bg-dark: #121416;
    /* Charcoal dark theme background */
    --card-dark: #1a1d20;
    /* Slightly lighter dark background for cards */
    --border-dark: #2c3034;
    --text-light: #f8f9fa;
    --text-light-muted: #a0aec0;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 8px 20px rgba(211, 47, 47, 0.25);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Resets & Global Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.bg-alt {
    background-color: var(--light-grey);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Common UI Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(211, 47, 47, 0.35);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-grey);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--light-grey);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 100px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.badge-accent {
    background-color: rgba(255, 23, 68, 0.15);
    color: var(--primary-light);
}

/* --- Top Alert/Info Bar --- */
.top-bar {
    background-color: var(--text-dark);
    color: var(--text-light-muted);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-dark);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

a.top-bar-item {
    cursor: pointer;
}

a.top-bar-item:hover {
    color: var(--white);
}

.top-bar-item i {
    width: 14px;
    height: 14px;
    color: var(--primary-light);
}

/* --- Sticky Glassmorphic Header --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo-accent {
    background-color: var(--primary);
    color: var(--white);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin-right: 6px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.nav-link.highlight:hover {
    box-shadow: var(--shadow-primary);
}

.nav-link.highlight::after {
    display: none;
}

.menu-toggle {
    display: none;
    background: transparent;
    color: var(--text-dark);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    background-color: #0c0d0e;
    background-image: radial-gradient(circle at 80% 20%, rgba(211, 47, 47, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(33, 37, 41, 0.8) 0%, transparent 60%);
    padding: 100px 0 120px;
    color: var(--white);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(211, 47, 47, 0.2);
    color: var(--primary-light);
    border: 1px solid rgba(211, 47, 47, 0.3);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-light-muted);
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 24px 32px;
    width: 260px;
    text-align: right;
    transition: var(--transition);
}

.stat-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(211, 47, 47, 0.3);
    transform: translateX(-5px);
}

.stat-card h3 {
    font-size: 2.25rem;
    color: var(--primary-light);
    margin-bottom: 4px;
}

.stat-card p {
    color: var(--text-light-muted);
    font-size: 0.95rem;
}

/* --- Hours & Google Calendar Section --- */
.calendar-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
    margin-top: 20px;
}

.hours-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-grey);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.hours-card .card-title {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hours-card .card-title i {
    color: var(--primary);
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border-grey);
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list li .day {
    font-weight: 600;
}

.hours-list li .time {
    color: var(--text-muted);
}

.hours-list li.closed .time {
    color: var(--primary);
    font-weight: 500;
}

.appointment-banner {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.03) 0%, rgba(211, 47, 47, 0.07) 100%);
    border: 1px solid rgba(211, 47, 47, 0.15);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 28px;
}

.appointment-banner h4 {
    color: var(--primary-dark);
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.appointment-banner p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.calendar-wrapper {
    background-color: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-grey);
    padding: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.calendar-wrapper iframe {
    border-radius: 4px;
    flex-grow: 1;
    min-height: 400px;
}

.calendar-info {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.calendar-info i {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-grey);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
    transform: scaleY(0);
    transition: var(--transition);
    transform-origin: bottom;
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-thumbnail {
    width: calc(100% + 64px);
    height: 160px;
    margin-top: -32px;
    margin-left: -32px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-grey);
}

.service-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-thumbnail img {
    transform: scale(1.08);
}

.service-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(211, 47, 47, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
}

.service-icon i {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.service-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.service-price .subtext {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Inventory Section --- */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    gap: 24px;
    flex-wrap: wrap;
}

.section-header-left {
    max-width: 650px;
}

.section-header-left h2 {
    font-size: 2.25rem;
    margin-bottom: 8px;
}

.section-header-left p {
    color: var(--text-muted);
}

.filter-toolbar {
    background-color: var(--light-grey);
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex-grow: 1;
    max-width: 400px;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background-color: var(--white);
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}

.filter-selects {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.select-wrapper label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.filter-selects select {
    padding: 10px 32px 10px 14px;
    background-color: var(--white);
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: var(--transition);
    min-width: 150px;
}

.filter-selects select:focus {
    border-color: var(--primary);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Bowling Ball Visual Styling inside Cards */
.ball-card {
    background-color: var(--white);
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.ball-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.ball-preview-area {
    background: radial-gradient(circle at center, #fdfdfd 0%, #ececec 100%);
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 180px;
    border-bottom: 1px solid var(--border-grey);
}

/* Beautiful dynamic CSS Bowling Ball */
.bowling-ball-art {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    position: relative;
    box-shadow: inset -10px -10px 25px rgba(0, 0, 0, 0.6),
        inset 10px 10px 20px rgba(255, 255, 255, 0.4),
        4px 8px 16px rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.8s ease;
}

.bowling-ball-art:hover {
    transform: rotate(360deg);
}

/* Bowling Ball Product Image inside Cards */
.bowling-ball-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 4px 8px 16px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.8s ease;
}

.bowling-ball-img:hover {
    transform: rotate(360deg);
}

/* Swirling shiny overlay */
.bowling-ball-art::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 12px;
    width: 85px;
    height: 35px;
    border-radius: 50% 50% 40% 40% / 70% 70% 30% 30%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 3;
}

/* Pin indicator */
.bowling-ball-art::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #ffd700;
    /* Gold pin */
    box-shadow: 0 0 2px #000;
    top: 25px;
    left: 45px;
    z-index: 2;
}

/* Finger Grips */
.finger-grips {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.grip-finger-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.grip-hole {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #0d0d0d;
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.2),
        1px 1px 1px rgba(0, 0, 0, 0.8);
}

.grip-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0a0a0a;
    box-shadow: inset 1.5px 1.5px 2px rgba(255, 255, 255, 0.2),
        1px 1.5px 1px rgba(0, 0, 0, 0.8);
}

.ball-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: var(--text-dark);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ball-card-badge.brand-storm {
    background-color: #005A9C;
}

.ball-card-badge.brand-hammer {
    background-color: #CC0000;
}

.ball-card-badge.brand-roto-grip {
    background-color: #4A154B;
}

.ball-card-badge.brand-900-global {
    background-color: #1e3a8a;
}

.ball-card-badge.brand-brunswick {
    background-color: #0c4a6e;
}

.ball-card-badge.brand-piranha {
    background-color: #008080;
}

.ball-card-badge.brand-radical {
    background-color: #ff5722;
}

.ball-card-badge.brand-seismic {
    background-color: #5d4037;
}

.ball-admin-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
    z-index: 4;
}

.ball-delete-btn,
.ball-edit-btn {
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.ball-delete-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}

.ball-edit-btn:hover {
    background-color: #0d6efd;
    color: var(--white);
}

.ball-delete-btn i,
.ball-edit-btn i {
    width: 14px;
    height: 14px;
}

.stock-status-badge {
    position: absolute;
    top: 42px;
    left: 14px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 3;
}

.ball-card.out-of-stock-card .bowling-ball-art,
.ball-card.out-of-stock-card .bowling-ball-img {
    opacity: 0.65;
    filter: grayscale(30%);
}

.ball-info-area {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ball-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.ball-title-row h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
}

.ball-price-tag {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.15rem;
}

.ball-coverstock-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ball-coverstock-tag i {
    width: 14px;
    height: 14px;
}

.ball-specs-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    background-color: var(--light-grey);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.ball-spec-item {
    display: flex;
    flex-direction: column;
}

.ball-spec-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ball-spec-value {
    color: var(--text-dark);
    font-weight: 600;
}

.ball-card-actions {
    margin-top: auto;
}

/* --- Interactive Visualizer Section (Dark Theme) --- */
.visualizer-section {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

.visualizer-section .section-header h2 {
    color: var(--text-light);
}

.visualizer-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
    margin-top: 20px;
}

.vis-controls-card {
    background-color: var(--card-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 24px;
}

.vis-title {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vis-title i {
    color: var(--primary-light);
}

.control-group {
    margin-bottom: 18px;
}

.control-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light-muted);
    margin-bottom: 6px;
}

.control-group label i {
    width: 14px;
    height: 14px;
}

.control-group select,
.control-group input {
    width: 100%;
    padding: 10px 14px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    transition: var(--transition);
}

.control-group select:focus,
.control-group input:focus {
    border-color: var(--primary-light);
}

.control-row-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.vis-ball-specs-preview {
    margin-top: 8px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-dark);
    padding: 12px;
    border-radius: var(--radius-sm);
}

.vis-preview-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.vis-preview-info:last-child {
    margin-bottom: 0;
}

.vis-preview-label {
    color: var(--text-light-muted);
}

.vis-preview-val {
    font-weight: 600;
    color: var(--text-light);
}

.vis-actions {
    margin-top: 24px;
}

.vis-display-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.canvas-wrapper {
    position: relative;
    background-color: #0c0d0f;
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

#laneCanvas {
    width: 100%;
    height: auto;
    display: block;
    cursor: crosshair;
}

.lane-legend {
    position: absolute;
    bottom: 10px;
    right: 15px;
    display: flex;
    gap: 14px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.legend-oil,
.legend-dry,
.legend-hook {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light-muted);
}

.legend-oil::before {
    content: '';
    width: 10px;
    height: 10px;
    background-color: rgba(30, 64, 175, 0.7);
    border-radius: 2px;
}

.legend-dry::before {
    content: '';
    width: 10px;
    height: 10px;
    background-color: #d97706;
    border-radius: 2px;
}

.legend-hook::before {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--primary-light);
    border-radius: 2px;
}

.sim-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.sim-stat {
    background-color: var(--card-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}

.sim-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-light-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.sim-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-heading);
}

.vis-report-box {
    background-color: var(--card-dark);
    border: 1px solid var(--border-dark);
    border-left: 4px solid var(--primary-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 20px;
}

.vis-report-box h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.vis-report-box h4 i {
    color: var(--primary-light);
}

.vis-report-box p {
    font-size: 0.9rem;
    color: var(--text-light-muted);
    line-height: 1.5;
}

/* --- Contact & Location Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: start;
}

.contact-info-card {
    background-color: var(--light-grey);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-grey);
    padding: 40px;
}

.contact-info-card h3,
.contact-form h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.contact-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-detail-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-detail-item:last-of-type {
    margin-bottom: 30px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(211, 47, 47, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-icon i {
    width: 20px;
    height: 20px;
}

.contact-detail-item h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.contact-detail-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-link {
    color: inherit;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.contact-map-placeholder {
    height: 160px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-grey);
    display: block;
    transition: var(--transition);
}

.contact-map-placeholder:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.map-bg {
    width: 100%;
    height: 100%;
    background-color: #eaeaea;
    background-image: radial-gradient(#d32f2f 2px, transparent 2px), radial-gradient(#212529 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    gap: 8px;
    padding: 20px;
    text-align: center;
}

.map-icon {
    color: var(--primary);
    width: 32px;
    height: 32px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.contact-form {
    background-color: var(--white);
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--light-grey);
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background-color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}

.form-tip {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-success-msg {
    display: none;
    align-items: center;
    gap: 8px;
    background-color: rgba(40, 167, 69, 0.15);
    color: #1e7e34;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(40, 167, 69, 0.25);
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Add Ball Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog {
    width: 100%;
    max-width: 600px;
    margin: 20px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-dialog {
    transform: translateY(0);
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-grow: 1;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-grey);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-title i {
    color: var(--primary);
}

.modal-close {
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-grey);
    background-color: var(--light-grey);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.highlight-box {
    background-color: rgba(211, 47, 47, 0.03);
    border: 1px dashed rgba(211, 47, 47, 0.3);
    padding: 16px;
    border-radius: var(--radius-sm);
}

.modal-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-grey);
    margin: 24px 0 16px;
}

.color-picker-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background-color: var(--light-grey);
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-grey);
}

.color-picker-row input[type="color"] {
    width: 44px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border-grey);
    border-radius: 4px;
    cursor: pointer;
}

.color-picker-row label {
    margin-bottom: 0;
    font-size: 0.75rem;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--text-dark);
    color: var(--text-light-muted);
    padding: 60px 0 0;
    border-top: 1px solid var(--border-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 14px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light-muted);
}

.social-links a:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h4,
.footer-newsletter h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.footer-links a {
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-newsletter p {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    overflow: hidden;
    max-width: 320px;
}

.newsletter-form input {
    background-color: transparent;
    padding: 10px 14px;
    color: var(--white);
    flex-grow: 1;
    font-size: 0.85rem;
    width: 100%;
}

.newsletter-form button {
    background-color: var(--primary);
    color: var(--white);
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding: 24px 0;
    font-size: 0.8rem;
    text-align: center;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* --- Responsive Adaptations --- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    .stat-card {
        width: 170px;
        padding: 16px;
        text-align: center;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
    }

    .visualizer-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    .main-header {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border-grey);
        box-shadow: var(--shadow-lg);
        align-items: stretch;
        text-align: center;
    }

    .main-nav.active {
        display: flex;
    }

    .nav-link.highlight {
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sim-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

/* --- New Multi-Category Inventory Tabs --- */
.category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-grey);
    padding-bottom: 12px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 18px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.tab-btn i {
    width: 16px;
    height: 16px;
}

.tab-btn:hover {
    color: var(--primary);
    background-color: var(--light-grey);
}

.tab-btn.active {
    color: var(--white);
    background-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

/* --- Dynamic Field Sections inside Modal --- */
.category-fields-section {
    display: none;
    animation: fadeIn 0.25s ease-out;
}

.category-fields-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Range Sliders for Visualizer --- */
.slider-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.slider-val-badge {
    background-color: var(--primary);
    color: var(--white);
    padding: 2px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 12px;
    min-width: 28px;
    text-align: center;
    display: inline-block;
}

.vis-slider {
    width: 100%;
    height: 6px;
    background: #343a40;
    outline: none;
    border-radius: 3px;
    cursor: pointer;
    accent-color: var(--primary);
    transition: var(--transition);
    margin-bottom: 8px;
}

.vis-slider::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-light);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(255, 23, 68, 0.5);
    transition: var(--transition);
}

.vis-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* --- Product Cards fallbacks for Shoes, Bags, Accessories --- */
.item-preview-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
}

.item-preview-icon i {
    width: 32px;
    height: 32px;
}

.ball-card:hover .item-preview-icon {
    transform: rotate(10deg) scale(1.05);
}

.card-spec-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    background-color: var(--light-grey);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
}

/* --- Visualizer Comparison Styling --- */
.color-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.dot-red {
    background-color: var(--primary-light);
    box-shadow: 0 0 6px var(--primary-light);
}

.dot-cyan {
    background-color: #00bcd4;
    box-shadow: 0 0 6px #00bcd4;
}

.compare-toggle-group {
    margin-top: -6px;
    margin-bottom: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-transform: none !important;
    font-size: 0.85rem !important;
    color: var(--text-light-muted) !important;
    font-weight: 500 !important;
}

.checkbox-label input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: var(--primary-light);
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
}

.spec-compare {
    border-color: rgba(0, 188, 212, 0.15) !important;
    background-color: rgba(0, 188, 212, 0.01) !important;
}

/* Side by side comparison report layout */
.report-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 14px;
    border-top: 1px solid var(--border-dark);
    padding-top: 14px;
}

.report-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-col-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

@media (max-width: 576px) {
    .report-comparison-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}