:root {
    --primary-color: #5d1929;
    --secondary-color: #dbb88e;
    --accent-color: #dfb79c;
    --text-color: #5c2c22;
    --text-light: #a67366;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--primary-color);
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.02em;
}

.tracking-wide {
    letter-spacing: 0.1em;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #bf360c;
    border-color: #bf360c;
    color: #fff;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

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

.z-master {
    z-index: 9999;
}

.transition-fade {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.fade-out {
    opacity: 0;
    visibility: hidden;
}

.bg-coffee-bean {
    background-color: var(--primary-color) !important;
}

.aesthetic-bg {
    background-color: #f7f3ee;
    background-image: url("images/background.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.aesthetic-bg-light {
    background-color: #fdfbf8;
    background-image: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)), url("images/background.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.loading-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.15);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.15);
    }
    70% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.snap-container {
    scroll-snap-type: x mandatory;
    gap: 1.25rem;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.snap-container::before,
.snap-container::after {
    content: '';
    flex: 0 0 calc(50vw - 120px - 1rem);
}

.category-card {
    scroll-snap-align: center;
    flex: 0 0 auto;
    width: 240px;
    height: 320px;
    background-color: var(--primary-color);
    border-radius: 1.5rem;
    position: relative;
    box-shadow: 0 15px 30px rgba(62, 39, 35, 0.2);
    transition: transform 0.2s ease-out, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2.5rem;
    color: white;
}

.category-card:active {
    transform: scale(0.96);
    box-shadow: 0 10px 20px rgba(62, 39, 35, 0.15);
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 0 10px;
}

.category-card img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.product-card {
    border-radius: 1rem;
    background-color: white;
    cursor: pointer;
    transition: transform 0.1s ease-in-out, box-shadow 0.2s;
}

.product-card:active {
    transform: scale(0.98);
    background-color: #fafafa;
}

.product-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 0.75rem;
    background-color: #f1f1f1;
}

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

.promo-banner {
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
}

.promo-banner:active {
    transform: scale(0.98);
}

.promo-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.modal-content {
    border-radius: 1.5rem;
}

.btn-close {
    background-color: rgba(255, 255, 255, 0.9);
}
