/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --color-bg: #F7F3EE;
    --color-bg-light: #FAF7F2;
    --color-text: #1C1C1C;
    --color-text-muted: #4A4A4A;
    --color-accent: #B08D57;
    --color-accent-hover: #C9A227;
    --color-white: #FFFFFF;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* ===== BASE STYLES ===== */
body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, .heading-font {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 600;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background-color: var(--color-text);
    color: var(--color-white);
    border: 1px solid var(--color-text);
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: 1px solid var(--color-accent);
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-white);
    border-color: var(--color-accent-hover);
}

/* ===== HEADER ===== */
.site-header {
    background-color: var(--color-white);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 2px;
}

.main-nav .nav-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 15px;
    position: relative;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--color-accent);
}

.header-icons a {
    color: var(--color-text);
    font-size: 1.2rem;
    margin-left: 20px;
    position: relative;
}

.header-icons a:hover {
    color: var(--color-accent);
}

.header-search {
    background: transparent;
    border: none;
    border-bottom: 1px solid #ccc;
    color: var(--color-text);
    border-radius: 0;
    padding: 5px 30px 5px 0;
}

.header-search:focus {
    background: transparent;
    border-color: var(--color-accent);
    color: var(--color-text);
    box-shadow: none;
}

.badge-accent {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--color-text);
    color: var(--color-bg);
    padding: 60px 0 30px;
    font-size: 0.95rem;
}

.site-footer h5 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.site-footer a {
    color: rgba(255,255,255,0.7);
}

.site-footer a:hover {
    color: var(--color-accent);
}

.footer-newsletter input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    color: var(--color-white);
    border-radius: 0;
    padding-left: 0;
}

.footer-newsletter input:focus {
    background: transparent;
    color: var(--color-white);
    box-shadow: none;
    border-color: var(--color-accent);
}

.footer-newsletter button {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.2rem;
}

/* ===== MODAL & POPUP (POSITION FIXED + CENTERED) ===== */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-box {
    background: var(--color-white);
    padding: 30px;
    border-radius: 4px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.custom-modal-overlay.active .custom-modal-box {
    transform: translateY(0);
}

.custom-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
}

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

.toast-msg {
    background: var(--color-white);
    color: var(--color-text);
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toast-in 0.35s ease forwards;
    min-width: 280px;
    border-left: 3px solid var(--color-text);
}

.toast-msg.success { border-color: var(--color-accent); }
.toast-msg.error   { border-color: #d9534f; }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(20px); }
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--color-white);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
    padding: 15px;
    height: 100%;
}

.product-card:hover {
    border-color: rgba(0,0,0,0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.product-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

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

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    transition: bottom 0.3s ease;
    background: rgba(255,255,255,0.9);
    padding: 10px 0;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.product-title a {
    color: var(--color-text);
}

.product-price {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ===== UTILITIES ===== */
.bg-cream {
    background-color: var(--color-bg);
}
.bg-cream-light {
    background-color: var(--color-bg-light);
}
.text-accent {
    color: var(--color-accent);
}
