/* =============================================================
   Learn Grow Play B2B - Styles
   ============================================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #003049;
    --primary-dark: #00243a;
    --primary-light: #e8eef2;
    --accent: #f77f00;
    --accent-light: #fcbf49;
    --danger: #d62828;
    --text: #333;
    --text-light: #666;
    --bg: #fafafa;
    --white: #fff;
    --border: #ddd;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { color: var(--primary); }

/* =============================================================
   LOGIN PAGE
   ============================================================= */

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 100%);
}

.login-container {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.login-logo {
    width: 150px;
    margin-bottom: 1.5rem;
}

.login-container h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

#login-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

#login-form input:focus {
    outline: none;
    border-color: var(--primary);
}

#login-form button {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#login-form button:hover {
    background: var(--accent-dark, #e06c00);
}

/* Request Access Form */
#request-section {
    text-align: left;
}

#request-section h2 {
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

#request-section .login-subtitle {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

#request-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

#request-form input:focus {
    outline: none;
    border-color: var(--primary);
}

#request-form button {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.25rem;
    transition: background 0.2s;
}

#request-form button:hover {
    background: var(--accent-dark, #e06c00);
}

#request-form button:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.login-toggle {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

.login-toggle a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.login-toggle a:hover {
    text-decoration: underline;
}

.error-msg {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.success-msg {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.75rem;
    text-align: center;
    padding: 0.75rem;
    background: #e8f5e9;
    border-radius: 8px;
}

.login-contact {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* =============================================================
   HEADER
   ============================================================= */

.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    height: 70px;
    width: 70px;
    object-fit: contain;
    border-radius: 50%;
}

.header-text h1 {
    font-size: 1.4rem;
    color: var(--primary);
    line-height: 1.2;
}

.tagline {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.header-nav {
    margin-left: auto;
    display: flex;
    gap: 1.5rem;
}

.header-nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* =============================================================
   HERO SECTION
   ============================================================= */

.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 50%, #fff3e0 100%);
    padding: 3rem 2rem;
    overflow: hidden;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    flex: 1;
    min-width: 280px;
}

.hero-headline {
    font-size: 2.2rem;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-headline::first-line {
    color: var(--primary);
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.05rem;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background: #e07300;
    transform: translateY(-1px);
    color: var(--white);
}

.btn-outline {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.05rem;
    border: 2px solid var(--primary);
    transition: all 0.2s;
}

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

.hero-cards {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 420px;
}

.hero-card {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-card:hover {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.hero-card-1 { transform: rotate(-2deg); }
.hero-card-2 { transform: rotate(1.5deg); margin-top: 1rem; }
.hero-card-3 { transform: rotate(1deg); margin-top: -0.5rem; }
.hero-card-4 { transform: rotate(-1.5deg); margin-top: 0.5rem; }

/* =============================================================
   HOW IT WORKS
   ============================================================= */

.how-it-works {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.how-it-works h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
}

.step {
    flex: 1;
    max-width: 260px;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

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

.step-arrow {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary);
    padding-top: 2.5rem;
    opacity: 0.5;
}

/* =============================================================
   WHY WHOLESALE SECTION
   ============================================================= */

.why-wholesale {
    background: var(--white);
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.why-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.why-inner h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.why-card {
    padding: 1.5rem 1.25rem;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.why-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.why-card h3 {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.why-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
}

.why-card p strong {
    color: var(--text);
}

.why-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.why-link:hover {
    color: #e07300;
    text-decoration: underline;
}

/* Carousel Nav */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.carousel-btn {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 0.4rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-btn:hover:not(:disabled) {
    background: #e07300;
}

.carousel-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.carousel-counter {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

/* =============================================================
   CATEGORY GRID
   ============================================================= */

.categories-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.categories-section h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.category-tile {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.category-tile:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.category-tile:hover .cat-thumb {
    transform: scale(1.05);
}

.category-tile.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(247, 127, 0, 0.15);
}

.category-tile .cat-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.category-tile .cat-info {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
}

.category-tile .cat-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

.category-tile .cat-count {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.15rem;
}

.category-tile .cat-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    display: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.category-tile .cat-badge.visible {
    display: block;
}

/* =============================================================
   EXPANDED CATEGORY (Card Selector)
   ============================================================= */

.category-expanded {
    max-width: 1200px;
    margin: 0 auto 1rem;
    padding: 0 2rem;
}

.card-panel {
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 0.5rem;
    box-shadow: var(--shadow);
}

.card-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.card-panel-header h3 {
    color: var(--primary);
    font-size: 1.2rem;
}

.card-panel-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.card-panel-close:hover {
    color: var(--text);
}

.select-all-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background: var(--primary-light);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.select-all-row label {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-dark);
}

.select-all-qty {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.select-all-qty input {
    width: 60px;
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}

/* Showcase Grid - visual card selector */
.card-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.showcase-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s;
}

.showcase-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.showcase-card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(247, 127, 0, 0.15);
}

.showcase-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.showcase-card:hover .showcase-img {
    transform: scale(1.05);
}

.showcase-zoom {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: zoom-in;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.showcase-card:hover .showcase-zoom {
    opacity: 1;
}

.showcase-controls {
    padding: 0.75rem;
}

.showcase-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.showcase-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.showcase-card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.showcase-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.showcase-qty-row .card-qty {
    width: 55px;
    padding: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}

.showcase-line-total {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
}

.card-panel-count {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: normal;
}

/* Legacy card-item styles kept for order table compatibility */
.card-item .card-qty {
    width: 55px;
    padding: 0.3rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.card-item .card-line-total {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    min-width: 50px;
    text-align: right;
    flex-shrink: 0;
}

.category-subtotal {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    text-align: right;
    font-weight: 600;
    color: var(--primary);
}

/* =============================================================
   FLOATING CART SUMMARY
   ============================================================= */

.cart-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    color: var(--white);
    padding: 0.75rem 2rem;
    z-index: 99;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.cart-summary-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cart-summary button {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cart-summary button:hover:not(:disabled) {
    background: #e0913a;
}

.cart-summary button:disabled {
    background: #888;
    cursor: not-allowed;
    opacity: 0.6;
}

.cart-msg {
    font-size: 0.85rem;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.cart-msg-warning {
    color: #ffcdd2;
}

.cart-msg-info {
    color: #ffe0b2;
}

.cart-msg-success {
    color: #a5d6a7;
}

/* =============================================================
   ORDER SECTION
   ============================================================= */

.order-section {
    max-width: 900px;
    margin: 2rem auto 6rem;
    padding: 0 2rem;
}

.order-section h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.empty-cart-msg {
    color: var(--text-light);
    font-style: italic;
    padding: 2rem;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

.order-items table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.order-items th {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-items td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.order-items tr:last-child td {
    border-bottom: none;
}

.order-items .remove-btn {
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
}

.order-items .remove-btn:hover {
    color: #b71c1c;
}

.order-items .preview-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 4px;
    vertical-align: middle;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.order-items .preview-btn:hover {
    opacity: 1;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
    max-width: 500px;
    max-height: 90vh;
    width: 100%;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.lightbox-caption {
    text-align: center;
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: var(--shadow);
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: #e07300;
}

/* Order Totals */
.order-totals {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 1rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.95rem;
}

.total-final {
    border-top: 2px solid var(--primary);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.minimum-warning {
    color: #d32f2f;
    font-weight: 600;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: #ffebee;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}

.free-shipping-msg {
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: var(--primary-light);
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}

/* =============================================================
   ORDER FORM
   ============================================================= */

.order-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 1.5rem;
}

.order-form h3 {
    color: var(--primary);
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text);
}

.form-group input,
.form-group select {
    padding: 0.65rem 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Custom Branding Option */
.custom-branding {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #fff9e6;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
}

.branding-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.branding-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.branding-checkbox label {
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
}

.branding-price {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.branding-note {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--white);
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

.branding-note p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

.branding-note a {
    color: var(--primary);
    font-weight: 600;
}

/* Logo Upload */
.logo-upload-section {
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    border: 2px dashed #ccc;
    transition: border-color 0.2s;
}

.logo-upload-section:hover {
    border-color: var(--accent);
}

.logo-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
    text-align: center;
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.upload-text {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.upload-formats {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.logo-file-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #e8f5e9;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.logo-file-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    word-break: break-all;
}

.logo-file-remove {
    background: none;
    border: none;
    color: #d62828;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    line-height: 1;
}

.logo-file-remove:hover {
    background: #fdecea;
}

.branding-note-text {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0.75rem 0 0 0;
    text-align: center;
}

.branding-note-text a {
    color: var(--primary);
    font-weight: 600;
}

.submit-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #e07300;
}

.submit-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* =============================================================
   FOOTER
   ============================================================= */

.site-footer {
    background: var(--white);
    border-top: 2px solid var(--border);
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

.site-footer p + p {
    margin-top: 0.25rem;
}

.site-footer {
    padding-bottom: 4rem;
}

/* =============================================================
   SUCCESS / CANCEL PAGES
   ============================================================= */

.result-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg);
}

.result-container {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.result-container .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.result-container h1 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.result-container p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.result-container a {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
}

.result-container a:hover {
    background: var(--primary-dark);
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .header-nav {
        margin-left: 0;
        justify-content: center;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-headline {
        font-size: 1.6rem;
    }

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

    .hero-cards {
        max-width: 300px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding-top: 0;
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .card-showcase-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }

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

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

    .cart-summary-inner {
        font-size: 0.85rem;
    }

    .order-items table {
        font-size: 0.8rem;
    }

    .order-items th, .order-items td {
        padding: 0.4rem 0.5rem;
    }
}

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

    .site-header {
        padding: 0.75rem 1rem;
    }

    .categories-section,
    .order-section {
        padding: 0 1rem;
    }
}
