/* ==========================================================================
   PADARIA LAMIM - Elegant Artisanal Hearth Design
   ========================================================================== */

:root {
    --primary: #6d574b;          /* Cocoa Brown */
    --primary-light: #877063;
    --accent: #7d562d;           /* Toasted Gold */
    --accent-light: #ffca98;
    --bg-color: #fefae0;         /* Soft Cream */
    --card-bg: #ffffff;
    --text-main: #1d1c0d;        /* Dark Cocoa */
    --text-muted: #4f4540;       /* Muted Cocoa */
    --success: #5a5e43;          /* Sage Green */
    --success-hover: #484b36;
    --danger: #ba1a1a;
    --border: #d2c4bd;
    --border-light: rgba(139, 115, 102, 0.15);
    --shadow: 0 10px 30px rgba(109, 87, 75, 0.08), 0 4px 8px rgba(109, 87, 75, 0.04);
    --border-radius: 20px;
}

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

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: var(--bg-color);
    background-image:
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(139, 115, 102, 0.02) 50px, rgba(139, 115, 102, 0.02) 100px),
        linear-gradient(rgba(254, 250, 224, 0.95), rgba(254, 250, 224, 0.95));
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: 90px; /* Space for mobile floating cart */
    position: relative;
}

.grain-texture {
    background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
    opacity: 0.035;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Typography */
h1, h2, h3, .font-serif {
    font-family: 'EB Garamond', serif;
}

/* Header */
.store-header {
    position: relative;
    background-color: var(--primary);
    background-image: linear-gradient(to bottom, rgba(44, 34, 30, 0.65), rgba(29, 28, 13, 0.85)), url('https://lh3.googleusercontent.com/aida-public/AB6AXuDOnvXrK54BXcX4y1sUZBnX5ybmmIpRSFKZwfvxm0HBDLsD8M3d1HsS-tZQ2bB0q_cfEUIARzub4JiTHtvD1MklZzyyodZoT6d3M8mDkvU9rwwvPk9HwlbgSAfvIrwRoW1_S73qIjszgJ1RLQnAA7zwu0FKbo3uw7k8emyOmmFgZB3zTUtpMU7ENwmMl7mZE6AXc70XvZ9YmHLoyfbuOIyYSmPlKFo3fhlAhbWg5qyjux6ZYPhgGEn8d0m1yiMDNJpphzriWy7_eTRL');
    background-size: cover;
    background-position: center;
    padding: 60px 20px 90px 20px;
    text-align: center;
    color: white;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    margin-bottom: 60px;
    overflow: visible;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(109, 87, 75, 0.2) 0%, rgba(29, 28, 13, 0.75) 100%);
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    pointer-events: none;
}

/* Orgânico Dripping Chocolate/Caramel Border Effect */
.store-header::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 60px;
    background-image:
        radial-gradient(circle at 10% 0%, var(--primary) 30px, transparent 31px),
        radial-gradient(circle at 25% 0%, var(--primary) 40px, transparent 41px),
        radial-gradient(circle at 45% 0%, var(--primary) 28px, transparent 29px),
        radial-gradient(circle at 65% 0%, var(--primary) 45px, transparent 46px),
        radial-gradient(circle at 85% 0%, var(--primary) 32px, transparent 33px);
    background-size: 100% 100%;
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.store-logo {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.25);
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: 1px solid var(--accent);
    outline-offset: 2px;
}

.store-logo:hover {
    transform: scale(1.08) rotate(5deg);
}

.store-name {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fefae0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.35);
    font-style: italic;
}

.store-subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.5px;
    font-style: italic;
}

.store-info {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 22px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.opening-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hours-sep {
    display: none;
}

.delivery-info {
    display: block;
    font-size: 0.75rem;
    opacity: 0.85;
}

@media (min-width: 600px) {
    .store-info {
        flex-direction: row;
        border-radius: 100px;
        gap: 15px;
    }

    .opening-details {
        flex-direction: row;
        align-items: center;
    }

    .hours-sep {
        display: inline;
        margin: 0 6px;
        opacity: 0.5;
    }
}

/* Status Badge */
.status-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-badge.closed .status-text {
    color: #e53e3e;
}
.status-badge.closed .status-dot {
    background: #f56565;
    box-shadow: 0 0 8px rgba(245, 101, 101, 0.6);
}

.status-badge.open .status-text {
    color: #38a169;
}
.status-badge.open .status-dot {
    background: #48bb78;
    box-shadow: 0 0 8px rgba(72, 187, 120, 0.6);
}

/* Search Bar (Floating overlapping bottom curve of header) */
.search-container {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    z-index: 10;
}

.search-container input {
    width: 100%;
    padding: 16px 50px 16px 24px;
    border-radius: 999px;
    border: 2px solid var(--bg-color);
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-container input:focus {
    box-shadow: 0 10px 30px rgba(125, 86, 45, 0.25);
    transform: translateY(-1px);
    border-color: var(--accent);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    pointer-events: none;
}

/* Category Navigation */
.category-nav {
    display: flex;
    overflow-x: auto;
    padding: 15px 20px;
    background: rgba(254, 250, 224, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-light);
    gap: 20px;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

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

.category-nav button {
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.category-nav button:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.category-nav button:active {
    transform: scale(0.96);
}

@media (max-width: 767px) {
    .category-nav {
        justify-content: flex-start;
        padding: 12px 16px;
        gap: 12px;
    }
}

/* Out of hours banner */
.closed-banner {
    background: #fff5f5;
    color: #c53030;
    margin: 0 auto 30px auto;
    max-width: 90%;
    border-radius: 16px;
    border: 1px solid #fed7d7;
    box-shadow: 0 6px 20px rgba(197, 48, 48, 0.04);
    animation: slideDown 0.4s ease-out;
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    text-align: center;
}

.banner-header-icon {
    font-size: 1.8rem;
}

.banner-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 500;
}

.banner-content strong {
    color: #9b2c2c;
    font-weight: 700;
}

@keyframes slideDown {
    from { transform: translateY(-15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Main Split Grid */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .container {
        grid-template-columns: 2.1fr 1fr;
        align-items: start;
    }
}

/* Menu Section */
.menu-section {
    background: rgba(254, 250, 224, 0.5);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(5px);
}

.category-block {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

.category-block:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title::after {
    content: "";
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}

/* Product Grid & Cards */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 15px rgba(109, 87, 75, 0.03);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    height: 100%;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(109, 87, 75, 0.12);
    border-color: var(--accent);
}

.product-image-container {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-color);
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover .product-image {
    transform: scale(1.07);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.product-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.product-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-t: 1px dashed var(--border-light);
}

.product-price {
    font-family: 'EB Garamond', serif;
    font-weight: 700;
    color: var(--accent);
    font-size: 1.25rem;
}

.btn-add {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    box-shadow: 0 3px 8px rgba(109, 87, 75, 0.15);
}

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

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

/* Quantity Selector on Card */
.qty-selector {
    display: inline-flex;
    align-items: center;
    background: var(--bg-color);
    padding: 3px;
    border-radius: 100px;
    border: 1px solid var(--border);
}

.btn-qty-card {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.btn-qty-card:hover {
    background: var(--border-light);
}

.btn-qty-card:active {
    transform: scale(0.9);
}

.card-qty-value {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
    min-width: 24px;
    text-align: center;
}

/* Cart Section / Sidebar */
.cart-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 12px;
}

.cart-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.cart-badge {
    background: var(--primary);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.cart-items {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.empty-cart-msg {
    color: var(--text-muted);
    text-align: center;
    padding: 30px 0;
    font-size: 0.85rem;
    font-style: italic;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(139, 115, 102, 0.08);
}

.cart-item:last-child {
    border-bottom: none;
}

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

.cart-item-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.cart-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-qty {
    background: var(--bg-color);
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.btn-qty:hover {
    background: var(--border);
}

.cart-qty {
    font-weight: 700;
    font-size: 0.8rem;
    min-width: 14px;
    text-align: center;
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 8px 0;
    padding-top: 12px;
    border-top: 2px dashed var(--border-light);
}

/* Checkout Form */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.checkout-form h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary-light);
    margin-bottom: 4px;
}

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

.form-group label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    background: var(--bg-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: white;
}

.delivery-options {
    display: flex;
    gap: 16px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
}

.radio-label input[type="radio"] {
    width: auto;
    accent-color: var(--primary);
    cursor: pointer;
}

.btn-primary {
    background: var(--success);
    color: white;
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.2s;
    font-family: inherit;
    box-shadow: 0 4px 10px rgba(90, 94, 67, 0.2);
}

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

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* Material Symbols Adjust */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
    vertical-align: middle;
}

/* Mobile Floating Cart Button */
.floating-cart {
    position: fixed;
    bottom: 24px;
    left: 16px;
    right: 16px;
    background: var(--primary);
    color: #fefae0;
    border: none;
    padding: 14px 20px;
    border-radius: 30px;
    font-family: inherit;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 100;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.floating-cart:active {
    transform: scale(0.96);
}

.floating-cart-content {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    width: 100%;
    justify-content: space-between;
}

.floating-cart-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-cart-icon-bg {
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--accent-light);
}

.floating-cart-info {
    display: flex;
    flex-direction: column;
}

.floating-cart-text {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.8;
}

.floating-cart-details {
    font-size: 0.85rem;
    font-weight: 700;
}

@media (max-width: 991px) {
    .floating-cart {
        display: block;
    }
}

.translate-y-24 {
    transform: translateY(120px);
}
.translate-y-0 {
    transform: translateY(0);
}

/* Success View Overlay */
.success-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(254, 250, 224, 0.98);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-container {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 28px;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 50px rgba(109, 87, 75, 0.15);
    padding: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.success-overlay.active .success-container {
    transform: scale(1);
}

.success-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    gap: 12px;
}

.success-avatar-container {
    position: relative;
    width: 110px;
    height: 110px;
}

.success-avatar-bg {
    position: absolute;
    inset: 0;
    background: var(--bg-color);
    border-radius: 50%;
    transform: scale(1.1);
}

.success-avatar-circle {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    overflow: hidden;
    background: var(--bg-color);
}

.success-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.success-check-badge {
    position: absolute;
    bottom: -2px;
    right: 4px;
    background: var(--success);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid white;
}

.success-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 8px;
}

.success-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 250px;
    line-height: 1.4;
}

.success-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    margin-bottom: 24px;
}

@media (min-width: 480px) {
    .success-details {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.success-info-card {
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.success-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-info-item .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.15rem;
}

.success-info-label {
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.success-info-meta {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.success-info-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.success-basket-card {
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.success-basket-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 10px;
}

.success-basket-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 100px;
    flex-grow: 1;
}

.success-basket-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
}

.success-basket-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--border-light);
}

.success-basket-text {
    flex-grow: 1;
    min-width: 0;
}

.success-basket-name {
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.success-basket-qty {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.success-basket-price {
    font-weight: 700;
    color: var(--primary);
}

.success-basket-extra {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 6px;
}

.success-basket-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 10px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.success-basket-total-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.success-basket-total-val {
    font-family: 'EB Garamond', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 260px;
}

.btn-success-back {
    background: var(--primary);
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    box-shadow: 0 4px 10px rgba(109, 87, 75, 0.15);
}

.btn-success-back:hover {
    background: var(--accent);
}

.btn-success-back:active {
    transform: scale(0.97);
}

/* Footer styling */
.main-footer {
    text-align: center;
    padding: 40px 20px;
    background: var(--primary);
    color: #fefae0;
    font-size: 0.75rem;
    border-top: 1px solid var(--border-light);
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.main-footer a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
}

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

.main-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
}

.app-version {
    margin-top: 6px;
    opacity: 0.6;
    font-size: 0.65rem;
    font-weight: 600;
}

/* Out of Stock Styling */
.product-card.out-of-stock {
    opacity: 0.75;
    border-color: var(--border-light);
}

.product-card.out-of-stock .product-image {
    filter: grayscale(70%);
    opacity: 0.55;
}

.product-card.out-of-stock:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(109, 87, 75, 0.03);
    border-color: var(--border-light);
}

/* PWA Install Banner Style */
.install-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--primary);
    color: #fefae0;
    z-index: 1100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    border-bottom: 2px solid var(--accent);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.install-banner.hidden {
    display: none !important;
}

.install-banner-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.install-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border: 1px solid rgba(254, 250, 224, 0.2);
}

.install-banner-text {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.install-banner-text h4 {
    margin: 0 0 2px 0;
    font-size: 1rem;
    font-weight: 700;
}

.install-banner-text p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
    line-height: 1.3;
}

.install-banner-actions {
    display: flex;
    gap: 10px;
}

.btn-install-confirm {
    background: #5a5e43; /* Tertiary color */
    color: #fefae0;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-install-confirm:hover {
    background: #73775a;
    transform: translateY(-1px);
}

.btn-install-confirm:active {
    transform: translateY(0);
}

.btn-install-close {
    background: transparent;
    color: #fefae0;
    border: 1px solid rgba(254, 250, 224, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-install-close:hover {
    background: rgba(254, 250, 224, 0.1);
}

@media (max-width: 576px) {
    .install-banner-content {
        padding: 10px 16px;
    }
    .install-app-icon {
        width: 36px;
        height: 36px;
    }
    .install-banner-text {
        min-width: 100%;
        margin-top: 4px;
        order: 2;
    }
    .install-banner-actions {
        width: 100%;
        justify-content: flex-end;
        order: 3;
    }
}

/* Classes Utilitárias Globais */
.hidden {
    display: none !important;
}

