/* ============================================
   TOKO GEMBIRA - STYLE.CSS
   Supermarket Online E-Commerce
   ============================================ */

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2ecc71;
    --primary-dark: #27ae60;
    --primary-light: #a8f0c8;
    --secondary: #e67e22;
    --secondary-dark: #d35400;
    --danger: #e74c3c;
    --danger-light: #fdecea;
    --dark: #2c3e50;
    --dark-light: #34495e;
    --gray: #95a5a6;
    --gray-light: #bdc3c7;
    --gray-lighter: #ecf0f1;
    --white: #ffffff;
    --bg: #f5f7fa;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--primary);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--gray);
    font-weight: 400;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    display: flex;
    border: 2px solid var(--gray-lighter);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    background: transparent;
}

.search-bar button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--primary-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cart-toggle {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.cart-toggle:hover {
    background: var(--gray-lighter);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cart-badge.show {
    transform: scale(1);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--gray-lighter);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--white);
    z-index: 300;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.mobile-nav.open {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-lighter);
    font-weight: 600;
    font-size: 1.1rem;
}

.mobile-nav-header button {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray);
    line-height: 1;
}

.mobile-nav ul {
    padding: 12px 0;
}

.mobile-nav ul li a {
    display: block;
    padding: 12px 24px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 250;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.show {
    display: block;
    opacity: 1;
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories {
    background: var(--white);
    border-bottom: 1px solid var(--gray-lighter);
    padding: 16px 0;
}

.category-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.category-list::-webkit-scrollbar {
    display: none;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--dark);
    white-space: nowrap;
    flex-shrink: 0;
}

.category-btn:hover {
    border-color: var(--primary);
    background: rgba(46, 204, 113, 0.05);
}

.category-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.cat-icon {
    font-size: 1.5rem;
}

/* ============================================
   PROMO BANNER
   ============================================ */
.promo-banner {
    padding: 30px 0;
}

.banner-content {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a9d5e 40%, var(--primary) 100%);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: var(--white);
    overflow: hidden;
    position: relative;
    min-height: 220px;
}

.banner-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.banner-content::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.banner-text {
    position: relative;
    z-index: 1;
}

.banner-badge {
    display: inline-block;
    background: var(--secondary);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.banner-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
}

.banner-discount {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.banner-discount strong {
    font-size: 2rem;
}

.banner-desc {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.btn-banner {
    background: var(--white);
    color: var(--primary-dark);
    border: none;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.banner-visual {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.banner-circle {
    width: 160px;
    height: 160px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.banner-big-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--danger);
    line-height: 1;
}

.banner-small-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 2px;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
    padding: 30px 0 50px;
}

.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.section-header p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 4px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.product-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

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

.product-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
}

.product-info {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary-dark);
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: 50px;
    margin-bottom: 6px;
    text-transform: capitalize;
    width: fit-content;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-pricing {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.price-original {
    font-size: 0.8rem;
    color: var(--gray);
    text-decoration: line-through;
}

.price-current {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--danger);
}

.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-add-cart:active {
    transform: scale(0.97);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.no-results p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 16px;
    color: var(--dark);
}

.no-results span {
    font-size: 0.85rem;
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-overlay.show {
    display: block;
    opacity: 1;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    z-index: 210;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-lighter);
}

.cart-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray);
    line-height: 1;
    transition: var(--transition);
}

.cart-close:hover {
    color: var(--danger);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--gray);
}

.cart-empty p {
    margin-top: 16px;
    font-weight: 600;
    color: var(--dark-light);
}

.cart-empty span {
    font-size: 0.85rem;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-lighter);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 0.75rem;
    color: var(--danger);
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--gray-lighter);
    background: var(--gray-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
    font-family: inherit;
}

.cart-qty-btn:hover {
    background: var(--gray-light);
}

.cart-qty {
    width: 36px;
    height: 28px;
    border-top: 1px solid var(--gray-lighter);
    border-bottom: 1px solid var(--gray-lighter);
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    background: var(--white);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    transition: var(--transition);
    flex-shrink: 0;
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.cart-footer {
    padding: 16px 20px;
    border-top: 2px solid var(--gray-lighter);
    background: var(--white);
}

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

.btn-checkout {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-checkout:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ============================================
   CHECKOUT SECTION
   ============================================ */
.checkout-section {
    padding: 30px 0 60px;
    min-height: calc(100vh - 200px);
}

.checkout-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.checkout-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark);
}

.btn-back:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.checkout-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
}

.checkout-form-area h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 24px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-lighter);
    color: var(--dark);
}

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

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
}

.required {
    color: var(--danger);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.error-msg {
    display: block;
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: 4px;
    min-height: 18px;
}

/* Shipping Options */
.shipping-options {
    display: grid;
    gap: 10px;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.shipping-option:hover {
    border-color: var(--primary-light);
}

.shipping-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.shipping-option input[type="radio"]:checked + .shipping-info .shipping-name {
    color: var(--primary-dark);
}

.shipping-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}

.shipping-name {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 80px;
}

.shipping-time {
    font-size: 0.8rem;
    color: var(--gray);
    flex: 1;
}

.shipping-price {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--secondary);
}

/* Checkout Summary */
.checkout-summary {
    background: var(--gray-lighter);
    border-radius: var(--radius);
    padding: 20px;
    margin: 24px 0;
}

.checkout-summary h3 {
    margin-top: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-light);
}

.checkout-item-line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.85rem;
}

.checkout-item-line span:last-child {
    font-weight: 500;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
}

.summary-line.total {
    border-top: 2px solid var(--gray-light);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

.summary-line.total span:last-child {
    color: var(--danger);
}

.btn-checkout {
    margin-top: 8px;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--dark);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    font-weight: 500;
    animation: toastIn 0.4s ease;
    max-width: 340px;
}

.toast.success {
    background: var(--primary-dark);
}

.toast.error {
    background: var(--danger);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(20px) scale(0.95); }
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 400;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    animation: modalIn 0.4s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.modal-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.modal-content > p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 20px;
}

.order-number {
    background: var(--gray-lighter);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 16px;
}

.order-number span {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 4px;
}

.order-number strong {
    font-size: 1.3rem;
    color: var(--primary-dark);
    letter-spacing: 2px;
}

.modal-note {
    font-size: 0.8rem !important;
    color: var(--gray) !important;
    margin-bottom: 24px !important;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 0.85rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.contact-list li {
    font-size: 0.85rem;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 10px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

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

/* Tablet */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .banner-content {
        padding: 30px;
        min-height: 180px;
    }

    .banner-text h2 {
        font-size: 1.5rem;
    }
    
    .banner-circle {
        width: 120px;
        height: 120px;
    }

    .banner-big-text {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

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

/* Mobile */
@media (max-width: 640px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    .search-bar {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .category-btn {
        padding: 8px 14px;
    }

    .cat-icon {
        font-size: 1.2rem;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        min-height: auto;
    }

    .banner-text h2 {
        font-size: 1.3rem;
    }

    .banner-desc {
        display: none;
    }

    .banner-circle {
        width: 100px;
        height: 100px;
    }

    .banner-big-text {
        font-size: 1.5rem;
    }

    .banner-small-text {
        font-size: 0.7rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-image {
        height: 140px;
        font-size: 2.5rem;
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 0.8rem;
    }

    .price-current {
        font-size: 0.9rem;
    }

    .price-original {
        font-size: 0.7rem;
    }

    .btn-add-cart {
        padding: 8px;
        font-size: 0.75rem;
    }

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

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

    .checkout-header {
        flex-wrap: wrap;
    }

    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .toast {
        max-width: 100%;
    }

    .modal-content {
        padding: 28px;
    }

    .shipping-info {
        flex-wrap: wrap;
    }

    .shipping-time {
        flex-basis: 100%;
        margin-left: 30px;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 200px;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
