/**
 * Click & Collect Styles - Asinello Pizzeria
 * Mobile-first responsive design
 * Brand: gold #cda45e, dark #0c0b09, Playfair Display + Poppins + Open Sans
 */

/* ===== CSS Reset & Variables ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --gold: #cda45e;
    --gold-hover: #d9ba85;
    --gold-light: #d3af71;
    --bg-body: #0c0b09;
    --bg-card: #1a1814;
    --bg-card-hover: #221f19;
    --bg-input: #0c0b09;
    --bg-overlay: rgba(12, 11, 9, 0.85);
    --border: #625b4b;
    --border-subtle: #37332a;
    --text: #ffffff;
    --text-muted: #aaaaaa;
    --text-placeholder: #a49b89;
    --error: #ed3c0d;
    --error-bg: rgba(237, 60, 13, 0.1);
    --success: #18d26e;
    --success-bg: rgba(24, 210, 110, 0.1);
    --warning: #f5a623;
    --warning-bg: rgba(245, 166, 35, 0.1);
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --header-height: 64px;
    --cart-width: 350px;
    --transition: 0.25s ease;
}

html {
    font-size: 16px;
}

body {
    font-family: "Poppins", "Open Sans", sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-body);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.cc-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    height: var(--header-height);
}

.cc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    gap: 0.75rem;
}

.cc-logo {
    flex-shrink: 0;
}

.cc-logo img {
    height: 44px;
    width: auto;
    display: block;
    transition: opacity var(--transition);
}

.cc-logo:hover img {
    opacity: 0.8;
}

.cc-title {
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    color: var(--gold);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cc-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cc-auth-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== BUTTONS ===== */
.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-family: "Poppins", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.cc-btn-primary {
    background: var(--gold);
    color: var(--bg-body);
}

.cc-btn-primary:hover {
    background: var(--gold-hover);
}

.cc-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cc-btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.cc-btn-outline:hover {
    background: rgba(205, 164, 94, 0.1);
}

.cc-btn-text {
    background: transparent;
    color: var(--text-muted);
    padding: 0.5rem;
}

.cc-btn-text:hover {
    color: var(--gold);
}

.cc-btn-full {
    width: 100%;
}

/* ===== CART TOGGLE (header) ===== */
.cc-cart-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.cc-cart-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cc-cart-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    background: var(--gold);
    color: var(--bg-body);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    transition: transform var(--transition);
}

.cc-cart-badge.bump {
    transform: scale(1.3);
}

.cc-cart-badge[data-count="0"] {
    display: none;
}

/* ===== LAYOUT ===== */
.cc-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - var(--header-height) - 60px);
}

.cc-main {
    flex: 1;
    padding: 1rem;
    min-width: 0;
}

/* ===== CATEGORY FILTERS ===== */
.cc-categories {
    margin-bottom: 1.5rem;
    position: sticky;
    top: var(--header-height);
    z-index: 50;
    background: var(--bg-body);
    padding: 0.75rem 0;
}

.cc-categories-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.cc-categories-scroll::-webkit-scrollbar {
    display: none;
}

.cc-category-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 22px;
    color: var(--text-muted);
    font-family: "Poppins", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
    flex-shrink: 0;
}

.cc-category-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.cc-category-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-body);
}

/* ===== PRODUCT GRID ===== */
.cc-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

/* ===== PRODUCT CARD ===== */
.cc-product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.cc-product-card:hover {
    border-color: var(--border);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.cc-product-card.out-of-stock {
    opacity: 0.5;
    filter: grayscale(0.6);
    cursor: default;
    pointer-events: none;
}

.cc-product-card.out-of-stock:hover {
    transform: none;
    box-shadow: none;
}

.cc-product-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: var(--bg-body);
}

.cc-product-img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--bg-body) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
    font-size: 2rem;
}

.cc-product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cc-product-name {
    font-family: "Playfair Display", serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.cc-product-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cc-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.cc-product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
}

.cc-product-add {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    background: var(--gold);
    color: var(--bg-body);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1;
}

.cc-product-add:hover {
    background: var(--gold-hover);
    transform: scale(1.1);
}

/* Out of stock badge */
.cc-badge-unavailable {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--error);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
}

.cc-product-card-wrapper {
    position: relative;
}

/* ===== LOADING ===== */
.cc-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.cc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--gold);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: cc-spin 0.8s linear infinite;
}

@keyframes cc-spin {
    to { transform: rotate(360deg); }
}

/* ===== CART SIDEBAR ===== */
.cc-cart-sidebar {
    width: var(--cart-width);
    background: var(--bg-card);
    border-left: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    flex-shrink: 0;
}

.cc-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.cc-cart-header h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: 600;
}

.cc-cart-close {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.cc-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
}

.cc-cart-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

/* Cart item */
.cc-cart-item {
    background: var(--bg-body);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.cc-cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.cc-cart-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}

.cc-cart-item-remove {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: color var(--transition);
}

.cc-cart-item-remove:hover {
    color: var(--error);
}

.cc-cart-item-supplements {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.cc-cart-item-notes {
    font-size: 0.75rem;
    color: var(--text-placeholder);
    font-style: italic;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cc-cart-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cc-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cc-cart-item-qty button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}

.cc-cart-item-qty button:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.cc-cart-item-qty span {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cc-cart-item-total {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
}

/* Cart footer */
.cc-cart-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.cc-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.cc-cart-subtotal span:last-child {
    color: var(--gold);
    font-size: 1.2rem;
}

.cc-cart-footer .cc-btn + .cc-btn {
    margin-top: 0.5rem;
}

/* Cart overlay (mobile) */
.cc-cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 199;
}

.cc-cart-overlay.active {
    display: block;
}

/* ===== MODALS ===== */
.cc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.cc-modal-overlay.active {
    display: flex;
}

.cc-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}

.cc-modal-product {
    max-width: 500px;
}

.cc-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: color var(--transition);
}

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

.cc-modal-title {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

/* ===== AUTH TABS ===== */
.cc-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.cc-auth-tab {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    min-height: 44px;
}

.cc-auth-tab:hover {
    color: var(--text);
}

.cc-auth-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ===== FORMS ===== */
.cc-auth-form {
    /* Container for auth forms */
}

.cc-form-group {
    margin-bottom: 1rem;
}

.cc-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.cc-form-group input,
.cc-form-group textarea,
.cc-form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    color: var(--text);
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    transition: border-color var(--transition);
    min-height: 44px;
}

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

.cc-form-group input::placeholder,
.cc-form-group textarea::placeholder {
    color: var(--text-placeholder);
}

.cc-form-row {
    display: flex;
    gap: 1rem;
}

.cc-form-row .cc-form-group {
    flex: 1;
}

.cc-form-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    min-height: 0;
}

.cc-form-success {
    color: var(--success);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--success-bg);
    border-radius: var(--radius);
}

.cc-form-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.cc-form-link a {
    color: var(--gold);
    text-decoration: none;
}

.cc-form-link a:hover {
    text-decoration: underline;
}

.cc-form-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.cc-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-placeholder);
    margin-top: 0.25rem;
}

/* ===== PRODUCT DETAIL OVERLAY ===== */
.cc-detail-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--bg-body) 0%, var(--bg-card) 100%);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.cc-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cc-detail-name {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.cc-detail-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.cc-detail-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

/* Supplements */
.cc-detail-supplements h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.cc-supplements-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.cc-supplement-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.cc-supplement-item input[type="checkbox"] {
    accent-color: var(--gold);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

.cc-supplement-item label {
    display: flex;
    justify-content: space-between;
    flex: 1;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
}

.cc-supplement-price {
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* Quantity control */
.cc-detail-quantity {
    margin-bottom: 1rem;
}

.cc-detail-quantity label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.cc-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
}

.cc-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    background: var(--bg-body);
    border: none;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.cc-qty-btn:hover {
    background: var(--bg-card-hover);
    color: var(--gold);
}

.cc-qty-control input {
    width: 50px;
    text-align: center;
    background: var(--bg-input);
    border: none;
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    color: var(--text);
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    min-height: 44px;
    -moz-appearance: textfield;
}

.cc-qty-control input::-webkit-outer-spin-button,
.cc-qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Notes */
.cc-detail-notes {
    margin-bottom: 1.25rem;
}

.cc-detail-notes label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.cc-detail-notes textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    color: var(--text);
    font-family: "Poppins", sans-serif;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 60px;
    transition: border-color var(--transition);
}

.cc-detail-notes textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.cc-detail-notes textarea::placeholder {
    color: var(--text-placeholder);
}

/* Detail footer */
.cc-detail-footer {
    padding-top: 0.5rem;
}

#cc-btn-add-to-cart {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem;
}

/* ===== TOAST NOTIFICATIONS ===== */
.cc-toast-container {
    position: fixed;
    top: calc(var(--header-height) + 1rem);
    right: 1rem;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.cc-toast {
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: cc-toast-in 0.3s ease, cc-toast-out 0.3s ease 2.7s forwards;
    max-width: 340px;
}

.cc-toast-success {
    background: var(--success);
    color: #fff;
}

.cc-toast-error {
    background: var(--error);
    color: #fff;
}

.cc-toast-warning {
    background: var(--warning);
    color: var(--bg-body);
}

@keyframes cc-toast-in {
    from { opacity: 0; transform: translateX(1rem); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes cc-toast-out {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(-0.5rem); }
}

/* ===== FOOTER ===== */
.cc-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-subtle);
}

.cc-footer a {
    color: var(--gold);
    text-decoration: none;
}

.cc-footer a:hover {
    text-decoration: underline;
}

.cc-footer-sep {
    margin: 0 0.5rem;
    opacity: 0.4;
}

/* ===== RESPONSIVE — Mobile < 768px ===== */
@media (max-width: 767px) {
    .cc-title {
        display: none;
    }

    .cc-products-grid {
        grid-template-columns: 1fr;
    }

    /* Cart as bottom sheet on mobile */
    .cc-cart-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        max-height: 80vh;
        border-left: none;
        border-top: 1px solid var(--border-subtle);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        z-index: 200;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        top: auto;
    }

    .cc-cart-sidebar.open {
        transform: translateY(0);
    }

    .cc-cart-close {
        display: flex;
    }

    .cc-auth-area #cc-btn-account,
    .cc-auth-area #cc-btn-logout {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }

    .cc-modal {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .cc-form-row {
        flex-direction: column;
        gap: 0;
    }

    .cc-toast-container {
        left: 1rem;
        right: 1rem;
    }

    .cc-toast {
        max-width: 100%;
    }
}

/* ===== RESPONSIVE — Tablet 768px - 1024px ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .cc-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cc-cart-sidebar {
        width: 300px;
    }
}

/* ===== RESPONSIVE — Desktop > 1024px ===== */
@media (min-width: 1025px) {
    .cc-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .cc-main {
        padding: 1.5rem 2rem;
    }
}

/* ===== NO MENU STATE ===== */
.cc-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.cc-no-products p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ===== SLOT PICKER ===== */

.cc-section {
    padding: 1rem;
    max-width: 800px;
    margin: 80px auto 2rem;
}
.cc-hidden { display: none !important; }

.cc-section-inner {
    padding: 1.5rem;
}

.cc-section-header {
    margin-bottom: 1.5rem;
}
.cc-section-header h2 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

/* Date pills */
.cc-date-pills {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
}
.cc-date-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color, #333);
    border-radius: 12px;
    background: var(--dark-bg, #1a1814);
    color: var(--text-light, #aaa);
    cursor: pointer;
    min-width: 60px;
    transition: all 0.2s;
    font-family: var(--font-body);
    font-size: 0.85rem;
}
.cc-date-pill:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.cc-date-pill.selected {
    background: var(--gold);
    color: var(--bg-dark, #0c0b09);
    border-color: var(--gold);
    font-weight: 600;
}
.cc-date-pill.today {
    border-color: var(--gold);
}
.cc-date-day {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cc-date-num {
    font-size: 1.2rem;
    font-weight: 700;
}
.cc-date-month {
    font-size: 0.65rem;
    text-transform: uppercase;
}

/* Slot grid */
.cc-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}
.cc-slot-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0.75rem 0.5rem;
    border: 1px solid var(--border-color, #333);
    border-radius: 10px;
    background: var(--dark-bg, #1a1814);
    color: var(--text-light, #ccc);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}
.cc-slot-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}
.cc-slot-card.selected {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
    color: #fff;
}
.cc-slot-card:disabled,
.cc-slot-card.cc-slot--disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}
.cc-slot-time {
    font-size: 1.1rem;
    font-weight: 600;
}
.cc-no-slots {
    color: var(--text-muted, #888);
    text-align: center;
    padding: 2rem;
    font-style: italic;
}

/* ===== CHECKOUT PANEL ===== */

.cc-checkout-slot {
    background: var(--dark-bg, #1a1814);
    border: 1px solid var(--border-color, #333);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--gold);
    font-size: 1.05rem;
}
.cc-checkout-items {
    margin-bottom: 1.5rem;
}
.cc-checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color, #222);
}
.cc-checkout-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.cc-checkout-item-qty {
    font-weight: 600;
    color: var(--gold);
}
.cc-checkout-item-name {
    font-weight: 500;
    color: #fff;
}
.cc-checkout-item-sups {
    font-size: 0.8rem;
    color: var(--text-muted, #888);
    font-style: italic;
}
.cc-checkout-item-notes {
    font-size: 0.75rem;
    color: var(--text-muted, #888);
}
.cc-checkout-item-price {
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    margin-left: 1rem;
}
.cc-checkout-total {
    margin: 1.5rem 0;
}
.cc-checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    color: #fff;
    padding: 1rem 0;
    border-top: 2px solid var(--gold);
}
.cc-checkout-btn {
    min-height: 48px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}
.cc-checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== CONFIRMATION OVERLAY ===== */

.cc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}
.cc-confirmation {
    background: var(--dark-bg, #1a1814);
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
}
.cc-confirmation-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4caf50;
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.cc-confirmation h2 {
    font-family: var(--font-heading);
    color: var(--gold);
    margin-bottom: 0.75rem;
}
.cc-confirmation p {
    color: var(--text-light, #ccc);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.cc-confirmation-details {
    margin-bottom: 1.5rem;
}
.cc-confirmation-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color, #333);
    color: var(--text-light, #ccc);
}
.cc-confirmation-row strong {
    color: #fff;
}
