/* Crithavia Sports - Main Stylesheet - White Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --background: #ffffff;
    --foreground: #0a0a0a;
    --card: #f8f9fa;
    --card-hover: #f1f3f4;
    --border: #e5e7eb;
    --primary: #f59e0b;
    --primary-hover: #d97706;
    --secondary: #f3f4f6;
    --muted: #6b7280;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #fbbf24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
}

.logo-icon-img {
    width: auto;
    object-fit: contain;
    display: block;
}

/* Nav — desktop: everything inline. Mobile: hamburger toggles nav-links,
   cart button always stays visible. */
.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--muted);
    transition: color 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--foreground);
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn svg {
    width: 26px;
    height: 26px;
}

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.cart-btn:hover {
    background: var(--card-hover);
    border-color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fefefe 0%, #f8f9fa 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--foreground);
}

.hero-text h1 span {
    background: linear-gradient(135deg, var(--primary), #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: var(--muted);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 48px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #d97706);
    color: white;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: white;
    border: 2px solid var(--border);
    color: var(--foreground);
}

.btn-secondary:hover {
    background: var(--secondary);
    border-color: var(--primary);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-ball {
    width: 450px;
    height: 450px;
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background: var(--background);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--foreground);
}

.section-header p {
    color: var(--muted);
    font-size: 1.125rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Product Card */
.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
}

.product-card.sold-out {
    opacity: 0.7;
}

.product-card.coming-soon {
    opacity: 0.8;
}

.product-image-wrapper {
    position: relative;
    padding: 30px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 220px;
}

.product-image {
    width: 200px;
    height: 200px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    mix-blend-mode: multiply;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.12));
}

.product-card:hover .product-image {
    transform: scale(1.1) translateY(-6px);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-available {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-sold-out {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-coming-soon {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.stock-indicator {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.05);
    color: var(--foreground);
}

.stock-low {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.product-info {
    padding: 22px;
}

.product-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--foreground);
}

.product-description {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    padding: 4px 10px;
    background: var(--secondary);
    border-radius: 4px;
    font-size: 11px;
    color: var(--muted);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.add-to-cart-btn {
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--primary), #d97706);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
    min-height: 44px;
}

.add-to-cart-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.add-to-cart-btn:disabled {
    background: var(--secondary);
    color: var(--muted);
    cursor: not-allowed;
    box-shadow: none;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--secondary) 0%, var(--background) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--foreground);
}

.about-text p {
    color: var(--muted);
    margin-bottom: 32px;
    font-size: 1.125rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-feature {
    padding: 22px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.about-feature:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.1);
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), #d97706);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
}

.about-feature h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--foreground);
}

.about-feature p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: #1a1a1a;
    color: #e5e7eb;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer .logo {
    color: white;
}

.footer .logo-icon {
    color: #1a1a1a;
}

.footer-brand p {
    color: #9ca3af;
    margin-top: 16px;
    max-width: 300px;
}

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #374151;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* Cart Page */
.cart-page {
    padding: 110px 0 60px;
    min-height: 100vh;
    background: var(--background);
}

.cart-page h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--foreground);
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: var(--secondary);
    border-radius: 12px;
    padding: 10px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--foreground);
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: white;
    color: var(--foreground);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.quantity-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.quantity-value {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.remove-btn {
    color: var(--danger);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-left: auto;
    padding: 8px;
}

.remove-btn:hover {
    text-decoration: underline;
}

.cart-summary {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cart-summary h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--foreground);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.summary-row.total {
    border-bottom: none;
    font-size: 1.2rem;
    font-weight: 700;
    padding-top: 20px;
}

.summary-row.total span:last-child {
    color: var(--primary);
}

.checkout-btn {
    width: 100%;
    margin-top: 24px;
    padding: 16px;
    font-size: 1.1rem;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart p {
    color: var(--muted);
    margin-bottom: 24px;
}

/* Admin Styles */
.admin-page {
    padding: 110px 0 60px;
    min-height: 100vh;
    background: var(--secondary);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.admin-header h1 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--foreground);
}

.admin-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-tab.active, .admin-tab:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.admin-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.admin-table th,
.admin-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--muted);
}

.admin-table tr:hover {
    background: var(--card);
}

.admin-table img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--secondary);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status-available {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.status-sold_out {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.status-coming_soon {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin-right: 8px;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.action-btn.edit {
    background: var(--info);
    color: white;
}

.action-btn.delete {
    background: var(--danger);
    color: white;
}

.action-btn:hover {
    transform: scale(1.05);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal h2 {
    margin-bottom: 24px;
    color: var(--foreground);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--foreground);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--foreground);
    font-size: 16px; /* 16px prevents iOS Safari auto-zoom on focus */
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.login-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 32px;
    color: var(--foreground);
    font-size: 1.6rem;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s ease;
    min-width: 260px;
    max-width: 100%;
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.toast-message {
    font-weight: 500;
    color: var(--foreground);
}

.toast-success { border-color: var(--success); }
.toast-success .toast-icon { background: var(--success); color: white; }
.toast-error { border-color: var(--danger); }
.toast-error .toast-icon { background: var(--danger); color: white; }
.toast-info { border-color: var(--info); }
.toast-info .toast-icon { background: var(--info); color: white; }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Free Shipping Banner */
.free-shipping-banner {
    background: linear-gradient(135deg, var(--primary), #d97706);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 500;
}

/* ===== CHECKOUT PAGE ===== */
.checkout-page {
    padding: 110px 0 60px;
    min-height: 100vh;
}

.checkout-page h1 {
    font-size: clamp(1.6rem, 4vw, 2rem);
    margin-bottom: 30px;
    color: var(--foreground);
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

.checkout-form h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--foreground);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkout-form .form-group {
    margin-bottom: 20px;
}

.checkout-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--foreground);
}

.checkout-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px; /* prevents iOS auto-zoom */
    background: var(--card);
    color: var(--foreground);
    transition: all 0.2s ease;
}

.checkout-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.payment-option {
    cursor: pointer;
}

.payment-option input {
    display: none;
}

.payment-option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
    background: var(--card);
}

.payment-option input:checked + .payment-option-content {
    border-color: var(--primary);
    background: rgba(245, 158, 11, 0.05);
}

.payment-option-content svg {
    color: var(--muted);
    flex-shrink: 0;
}

.payment-option input:checked + .payment-option-content svg {
    color: var(--primary);
}

.checkout-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.checkout-summary {
    position: sticky;
    top: 100px;
    background: var(--card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border);
    height: fit-content;
}

.checkout-summary h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--foreground);
}

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.checkout-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.checkout-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--secondary);
    flex-shrink: 0;
}

.checkout-item-info {
    flex: 1;
    min-width: 0;
}

.checkout-item-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--foreground);
}

.checkout-item-qty {
    color: var(--muted);
    font-size: 0.85rem;
}

.checkout-item-price {
    font-weight: 600;
    color: var(--foreground);
    white-space: nowrap;
}

.checkout-totals {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.error-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.error-box ul {
    margin: 0;
    padding-left: 20px;
    color: #ef4444;
}

.error-box li {
    margin-bottom: 4px;
}

/* Order Confirmation */
.order-confirmation {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.order-confirmation .success-icon {
    width: 100px;
    height: 100px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.order-confirmation .success-icon svg {
    color: #22c55e;
}

.order-confirmation h1 {
    color: var(--foreground);
    margin-bottom: 16px;
}

.order-confirmation p {
    color: var(--muted);
    margin-bottom: 8px;
}

.order-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 80px 0;
    background: var(--background);
}

/* Directory grid of department contact cards */
.contact-directory {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.12);
    background: white;
}

.contact-card-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.contact-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--foreground);
}

.contact-card a {
    color: var(--muted);
    font-size: 0.85rem;
    word-break: break-word;
    transition: color 0.2s ease;
}

.contact-card a:hover {
    color: var(--primary);
}

/* Row of secondary contact methods: phone, WhatsApp, location */
.contact-other {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 32px;
    background: var(--secondary);
    border-radius: 16px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: white;
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.contact-info-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--foreground);
}

.contact-info-item a,
.contact-info-item p {
    color: var(--muted);
    font-size: 0.9rem;
}

.contact-info-item a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--foreground);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-social-links {
    margin-top: 20px;
}

.footer-social-links .social-link {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
}

.footer-social-links .social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

@media (max-width: 768px) {
    .contact-directory {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 14px;
    }

    .contact-card {
        padding: 20px 14px;
    }

    .contact-other {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-ball {
        width: 320px;
        height: 320px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary,
    .cart-summary {
        position: static;
        order: -1;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 12px 16px;
    }

    /* Hamburger appears, nav-links collapse into a dropdown panel */
    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        gap: 12px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        background: white;
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links .nav-link {
        padding: 12px 16px;
        border-radius: 8px;
    }

    .nav-links .nav-link:hover {
        background: var(--secondary);
    }

    .cart-btn {
        padding: 10px 14px;
    }
    .cart-btn span:not(.cart-badge) {
        display: none; /* hide the word "Cart", keep icon + badge, to save space */
    }

    .hero-text h1 {
        font-size: 2.1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-ball {
        width: 220px;
        height: 220px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .admin-table {
        font-size: 13px;
    }

    .admin-table th,
    .admin-table td {
        padding: 12px 8px;
    }

    .cart-item {
        flex-direction: column;
    }

    .cart-item-image {
        width: 100%;
        height: 160px;
    }

    .remove-btn {
        margin-left: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .form-actions {
        justify-content: stretch;
    }

    .form-actions .btn {
        flex: 1;
    }

    .login-box {
        padding: 32px 24px;
    }

    .toast-container {
        left: 12px;
        right: 12px;
        bottom: 12px;
        align-items: stretch;
    }

    .toast {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 420px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .product-image-wrapper {
        min-height: 180px;
        padding: 20px;
    }

    .product-image {
        width: 150px;
        height: 150px;
    }
}