/* =========================================
   HKUST Café 科大咖啡点单系统 - 样式表
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --green: #003366;
    --green-dark: #002244;
    --green-light: #1a5276;
    --green-bg: #eef3f8;
    --gold: #c4a35a;
    --gold-light: #f5ecd7;
    --dark: #0a1628;
    --text: #333;
    --text-light: #666;
    --bg: #f5f7fa;
    --card: #ffffff;
    --border: #e0e4ea;
    --shadow: 0 2px 12px rgba(0,30,60,0.08);
    --shadow-lg: 0 8px 30px rgba(0,30,60,0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans SC', 'Segoe UI', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Announcement Bar --- */
.announcement-bar {
    background: var(--dark);
    color: var(--gold);
    padding: 8px 0;
    font-size: 0.85rem;
    overflow: hidden;
    position: relative;
}

.announce-scroll {
    display: flex;
    gap: 2rem;
    animation: scrollAnnounce 20s linear infinite;
    white-space: nowrap;
    width: max-content;
}

@keyframes scrollAnnounce {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Header --- */
header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 var(--border);
    transition: box-shadow var(--transition);
}

header.scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 46px;
    height: 46px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-en {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--green);
    letter-spacing: 2px;
}

.logo-cn {
    font-size: 0.7rem;
    color: var(--text-light);
    letter-spacing: 3px;
}

nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--green);
    background: var(--green-bg);
}

.nav-link.active {
    background: var(--green);
    color: white;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    font-size: 0.9rem;
    pointer-events: none;
}

.search-box input {
    padding: 9px 16px 9px 36px;
    border: 2px solid var(--border);
    border-radius: 25px;
    font-size: 0.85rem;
    width: 200px;
    transition: all var(--transition);
    outline: none;
    font-family: inherit;
}

.search-box input:focus {
    border-color: var(--green);
    width: 260px;
    box-shadow: 0 0 0 3px rgba(0,112,74,0.1);
}

.cart-toggle {
    position: relative;
    background: var(--green-bg);
    border: none;
    padding: 10px 14px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all var(--transition);
}

.cart-toggle:hover {
    background: var(--green);
    transform: scale(1.05);
}

.cart-toggle:hover .cart-icon-wrap {
    filter: grayscale(1) brightness(10);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    transition: transform var(--transition);
}

.cart-badge.bump {
    animation: bump 0.3s ease;
}

@keyframes bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* --- Hero --- */
#hero {
    background: linear-gradient(135deg, #003366 0%, #0a4d8c 50%, #1a6fb5 100%);
    color: white;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape1 {
    width: 500px; height: 500px;
    background: white;
    top: -200px; right: -100px;
    animation: float 6s ease-in-out infinite;
}

.shape2 {
    width: 300px; height: 300px;
    background: white;
    bottom: -100px; left: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

.shape3 {
    width: 200px; height: 200px;
    background: var(--gold);
    top: 50%; left: 50%;
    animation: float 7s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

#hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.highlight {
    background: linear-gradient(120deg, #c4a35a 0%, #f0d68a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 900;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--green);
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-arrow {
    transition: transform var(--transition);
}

.hero-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.hero-visual {
    flex: 0 0 auto;
    position: relative;
}

.hero-cup-wrap {
    position: relative;
}

.hero-cup {
    font-size: 12rem;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: float 4s ease-in-out infinite;
}

.hero-steam span {
    position: absolute;
    top: -20px;
    width: 8px;
    height: 30px;
    background: rgba(255,255,255,0.4);
    border-radius: 10px;
    animation: steam 2s ease-in-out infinite;
}

.hero-steam span:nth-child(1) { left: 40%; animation-delay: 0s; }
.hero-steam span:nth-child(2) { left: 50%; animation-delay: 0.4s; }
.hero-steam span:nth-child(3) { left: 60%; animation-delay: 0.8s; }

@keyframes steam {
    0% { opacity: 0; transform: translateY(0) scaleX(1); }
    50% { opacity: 0.6; transform: translateY(-20px) scaleX(1.5); }
    100% { opacity: 0; transform: translateY(-40px) scaleX(0.8); }
}

.floating-items {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-item {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 2rem;
    transform: translate(var(--x), var(--y));
    animation: floatItem 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes floatItem {
    0%, 100% { transform: translate(var(--x), var(--y)); }
    50% { transform: translate(var(--x), calc(var(--y) - 15px)); }
}

/* --- Promo Section --- */
.promo-section {
    max-width: 1200px;
    margin: -40px auto 0;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.promo-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.promo-sakura:hover { border-color: #5b9bd5; }
.promo-member:hover { border-color: var(--gold); }
.promo-morning:hover { border-color: #ffa500; }
.promo-combo:hover { border-color: #5ba3d9; }

.promo-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.promo-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
}

.promo-info p {
    font-size: 0.75rem;
    color: var(--text-light);
}

.promo-arrow {
    margin-left: auto;
    color: var(--text-light);
    transition: transform var(--transition);
}

.promo-card:hover .promo-arrow {
    transform: translateX(4px);
    color: var(--green);
}

/* --- Menu Section --- */
.menu-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--dark);
    font-weight: 900;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--green);
    border-radius: 2px;
}

.section-sub {
    color: var(--text-light);
    margin-top: 1rem;
    font-size: 1rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Menu Card */
.menu-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-top {
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 0%, #eee 100%);
    padding: 2rem;
    text-align: center;
    overflow: hidden;
}

.card-emoji {
    font-size: 4.5rem;
    display: block;
    transition: transform var(--transition);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.menu-card:hover .card-emoji {
    transform: scale(1.1) rotate(-5deg);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.badge-hot {
    background: #fff0f0;
    color: #e74c3c;
}

.badge-new {
    background: #e8f5e9;
    color: var(--green);
}

.badge-limited {
    background: #fff3e0;
    color: #ff9800;
}

.badge-recommend {
    background: var(--gold-light);
    color: #8a6914;
}

.card-body {
    padding: 1.2rem 1.5rem 1.5rem;
}

.card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.card-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.card-rating {
    font-size: 0.8rem;
    color: var(--gold);
}

.card-sales {
    font-size: 0.75rem;
    color: var(--text-light);
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-price {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--green);
}

.card-price .unit {
    font-size: 0.85rem;
    font-weight: 500;
}

.card-add-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--green);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(0,112,74,0.3);
}

.card-add-btn:hover {
    background: var(--green-dark);
    transform: scale(1.1);
}

.card-add-btn:active {
    transform: scale(0.95);
}

/* No results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-results-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.2rem;
}

.no-results-hint {
    font-size: 0.9rem !important;
    margin-top: 0.5rem;
}

/* --- Cart Drawer --- */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -460px;
    width: 440px;
    max-width: 100vw;
    height: 100vh;
    background: white;
    z-index: 201;
    display: flex;
    flex-direction: column;
    transition: right var(--transition);
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-header h2 {
    font-size: 1.3rem;
    color: var(--dark);
}

.cart-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition);
}

.cart-close:hover {
    background: #eee;
    transform: rotate(90deg);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-hint {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid #f5f5f5;
    transition: background var(--transition);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-item:hover {
    background: #fafafa;
}

.cart-item-emoji {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.cart-item-opts {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-price {
    font-weight: 700;
    color: var(--green);
    font-size: 1rem;
}

.cart-qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 2px;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: var(--text);
    font-weight: 700;
}

.cart-qty-btn:hover {
    background: var(--green);
    color: white;
}

.cart-qty-btn.delete-btn:hover {
    background: #e74c3c;
}

.cart-qty-num {
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.cart-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    flex-shrink: 0;
    background: white;
}

.cart-summary {
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.total-row {
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 700;
}

.total-amount {
    color: var(--green);
    font-size: 1.4rem;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.checkout-btn:hover:not(:disabled) {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,112,74,0.3);
}

.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* --- Modal (Shared) --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
    padding: 1rem;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform var(--transition);
}

.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.05);
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 10;
    transition: all var(--transition);
}

.modal-close:hover {
    background: rgba(0,0,0,0.1);
    transform: rotate(90deg);
}

/* --- Customize Modal --- */
.modal-hero-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #eee 100%);
    padding: 2.5rem;
    text-align: center;
    border-radius: var(--radius) var(--radius) 0 0;
    position: relative;
}

.modal-emoji {
    font-size: 5rem;
    display: block;
}

.modal-badge {
    position: absolute;
    top: 16px;
    left: 16px;
}

.modal-body {
    padding: 1.5rem 2rem;
}

.modal-body h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.modal-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.modal-base-price {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--green);
    margin-bottom: 1.5rem;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group h4 {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.extra-hint {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.8rem;
}

.option-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.opt-btn {
    padding: 8px 16px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition);
    font-family: inherit;
    color: var(--text);
}

.opt-btn:hover {
    border-color: var(--green);
}

.opt-btn.active {
    border-color: var(--green);
    background: var(--green-bg);
    color: var(--green);
    font-weight: 700;
}

/* Size Buttons */
.size-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.size-btns .opt-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    gap: 4px;
}

.cup-visual {
    width: 32px;
    height: 28px;
    border: 2px solid var(--text-light);
    border-radius: 2px 2px 6px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 900;
    margin-bottom: 2px;
    transition: all var(--transition);
}

.cup-s { width: 26px; height: 24px; }
.cup-m { width: 30px; height: 28px; }
.cup-l { width: 34px; height: 32px; }

.opt-btn.active .cup-visual {
    border-color: var(--green);
    color: var(--green);
}

.opt-label {
    font-size: 0.85rem;
}

.opt-ml {
    font-size: 0.7rem;
    color: var(--text-light);
}

/* Extras */
.extras-btns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.extra-btn.active {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

/* Quantity */
.quantity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
}

.quantity-row h4 {
    font-weight: 700;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f5f5f5;
    border-radius: 30px;
    padding: 4px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--green);
    color: white;
}

.qty-num {
    font-size: 1.2rem;
    font-weight: 900;
    min-width: 24px;
    text-align: center;
}

.modal-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2rem;
    border-top: 1px solid var(--border);
    background: #fafafa;
    border-radius: 0 0 var(--radius) var(--radius);
    position: sticky;
    bottom: 0;
}

.modal-total-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--green);
    white-space: nowrap;
}

.modal-add-btn {
    flex: 1;
    padding: 14px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.modal-add-btn:hover {
    background: var(--green-dark);
}

/* --- Checkout Modal --- */
.checkout-modal-content {
    padding: 2rem;
}

.checkout-modal-content h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.checkout-items {
    max-height: 200px;
    overflow-y: auto;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f5f5f5;
}

.checkout-item-name {
    color: var(--dark);
}

.checkout-item-price {
    font-weight: 700;
    color: var(--green);
}

.checkout-divider {
    height: 2px;
    background: var(--green);
    margin: 1rem 0;
    border-radius: 1px;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.checkout-total-val {
    color: var(--green);
    font-size: 1.4rem;
}

.checkout-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0,112,74,0.1);
}

.confirm-order-btn {
    width: 100%;
    padding: 14px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.confirm-order-btn:hover {
    background: var(--green-dark);
}

/* --- Success Modal --- */
.success-modal-content {
    padding: 3rem 2rem;
    text-align: center;
}

.success-anim {
    margin-bottom: 1.5rem;
}

.success-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.success-circle svg {
    width: 100%;
    height: 100%;
}

.success-circle circle {
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    animation: drawCircle 0.6s ease forwards;
}

.success-circle path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck 0.4s ease 0.5s forwards;
}

@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

.success-modal-content h2 {
    font-size: 1.6rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.order-num-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.order-num-text span {
    font-weight: 700;
    color: var(--green);
}

.success-details {
    background: var(--green-bg);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9rem;
}

.detail-row b {
    color: var(--green);
}

/* Order Progress */
.order-progress {
    margin-bottom: 2rem;
    position: relative;
}

.progress-track {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill-bar {
    height: 100%;
    background: var(--green);
    width: 33%;
    border-radius: 2px;
    transition: width 1s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.4;
    transition: opacity var(--transition);
}

.step.active {
    opacity: 1;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
    margin-bottom: 4px;
}

.step.active .step-dot {
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(0,112,74,0.2);
}

.step span {
    font-size: 1.5rem;
}

.step p {
    font-size: 0.75rem;
    color: var(--text-light);
}

.success-btn {
    padding: 12px 40px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.success-btn:hover {
    background: var(--green-dark);
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(0,112,74,0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* --- Footer --- */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding: 3.5rem 0;
    gap: 3rem;
}

.footer-brand h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.footer-brand p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    font-size: 1.3rem;
}

.footer-social span {
    cursor: pointer;
    transition: transform var(--transition);
}

.footer-social span:hover {
    transform: scale(1.2);
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 0;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .promo-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { flex-direction: column; }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 0.8rem 1rem;
        gap: 0.5rem;
    }

    nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .nav-link {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .search-box input {
        width: 140px;
    }

    .search-box input:focus {
        width: 180px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    #hero h1 { font-size: 2.2rem; }
    .hero-stats { justify-content: center; }
    .hero-cup { font-size: 8rem; }

    .promo-grid { grid-template-columns: 1fr; }
    .menu-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

    .cart-drawer { width: 100%; right: -100%; }

    .modal { max-width: 100%; margin: 0; border-radius: var(--radius) var(--radius) 0 0; max-height: 95vh; }

    .footer-links { flex-direction: column; gap: 2rem; }

    .extras-btns { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    #hero { padding: 3rem 1rem; min-height: auto; }
    #hero h1 { font-size: 1.8rem; }
    .hero-cup { font-size: 6rem; }
    .menu-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
    .card-top { padding: 1.2rem; }
    .card-emoji { font-size: 3rem; }
    .card-body { padding: 0.8rem 1rem; }
    .card-name { font-size: 0.9rem; }
    .card-desc { display: none; }
    .card-meta { display: none; }
}
