/* ==============================
   Modern Light Theme - Makro Silver
   ============================== */
:root {
    --primary: #8B7355;
    --primary-light: #A89279;
    --primary-dark: #6B5740;
    --accent: #C9A96E;
    --bg-main: #FFFFFF;
    --bg-light: #F8F7F4;
    --bg-section: #F3F1EC;
    --text-dark: #2C2C2C;
    --text-body: #555555;
    --text-muted: #999999;
    --border-color: #E8E5E0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
    --transition: all 0.3s ease;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-full: 50%;

    /* Legacy compatibility aliases */
    --primary-color: #8B7355;
    --secondary-color: #6B5740;
    --dark-color: #2C2C2C;
    --light-color: #F8F7F4;
    --gray-color: #555555;
    --white-color: #ffffff;
    --luxury-gold: #8B7355;
    --luxury-gold-dark: #6B5740;
    --luxury-black: #2C2C2C;
    --luxury-cream: #F8F7F4;
    --luxury-dark: #2C2C2C;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--bg-main);
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--text-dark); }
a { text-decoration: none; color: var(--text-dark); transition: var(--transition); }
a:hover { color: var(--primary); }

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.visually-hidden-focusable:focus {
    position: fixed; top: 0; left: 0; z-index: 1050;
    width: auto; height: auto; padding: 1rem;
    background-color: var(--bg-main); color: var(--primary);
    text-decoration: none; font-weight: 600; box-shadow: var(--shadow-md);
}

/* ==============================
   Button Styles
   ============================== */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary);
    border: 1.5px solid var(--primary);
    font-weight: 600;
    padding: 10px 28px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    background: transparent;
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.rounded-pill { border-radius: 50rem !important; }

/* ==============================
   Navbar Styles (legacy compat)
   ============================== */
.navbar {
    background-color: var(--bg-main);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-brand img { height: 50px; width: auto; }
.navbar-toggler { border: none; padding: 0; }
.navbar-toggler:focus { box-shadow: none; }
.nav-link {
    color: var(--text-dark); font-weight: 500;
    padding: 10px 15px !important; position: relative; transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
    background-color: var(--primary); transition: var(--transition); transform: translateX(-50%);
}
.nav-link:hover::after, .nav-link.active::after { width: 50%; }

/* ==============================
   Hero Section Styles
   ============================== */
.hero-section {
    background-color: var(--bg-light);
    padding: 80px 0;
    position: relative; overflow: hidden;
}
.hero-section::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 50%; height: 100%; background-color: var(--primary); opacity: 0.05;
    border-radius: 0 0 0 80px; z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-content h1 { margin-bottom: 1.5rem; color: var(--text-dark); }
.hero-content p { color: var(--text-body); margin-bottom: 2rem; }
.hero-image {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md); transition: var(--transition);
}
.hero-image:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }

/* ==============================
   Features Section Styles
   ============================== */
.features-section-legacy {
    background-color: var(--bg-main);
    padding: 80px 0;
}
.feature-card-legacy {
    display: flex; background-color: var(--bg-main); padding: 28px;
    border-radius: var(--border-radius-md); border: 1px solid var(--border-color);
    transition: var(--transition); height: 100%;
}
.feature-card-legacy:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon-legacy {
    margin-right: 20px; width: 56px; height: 56px;
    background-color: var(--primary); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px; flex-shrink: 0;
}
.feature-content h3 { font-size: 18px; margin-bottom: 8px; }
.feature-content p { color: var(--text-body); margin-bottom: 0; }

/* ==============================
   Products Section Styles (legacy)
   ============================== */
.products-section-legacy {
    background-color: var(--bg-main);
    padding: 80px 0;
}
.product-card-legacy {
    background-color: var(--bg-main); border-radius: var(--border-radius-md);
    overflow: hidden; border: 1px solid var(--border-color);
    transition: var(--transition); height: 100%; display: flex; flex-direction: column;
}
.product-card-legacy:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-image img { width: 100%; height: 250px; object-fit: cover; transition: var(--transition); }
.product-card-legacy:hover .product-image img { transform: scale(1.05); }
.product-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.product-content h3 { font-size: 18px; margin-bottom: 8px; }
.product-content p { color: var(--text-body); margin-bottom: 16px; flex-grow: 1; }
.product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price { font-size: 18px; font-weight: 700; color: var(--primary); }

/* ==============================
   Payment / Order Styles
   ============================== */
.payment-methods { background-color: var(--bg-main); padding: 30px 0; text-align: center; border-top: 1px solid var(--border-color); }
.payment-methods img { max-width: 50px; height: auto; }
.order-summary { background-color: var(--bg-light); padding: 1.5rem; border-radius: var(--border-radius-sm); }
.discount-code form { display: flex; gap: 0.5rem; }
.alert-info { background-color: #EBF0F5; border-color: #C8D6E5; color: #2C3E50; }

/* ==============================
   Footer Styles
   ============================== */
.footer {
    background-color: var(--bg-section);
    padding: 60px 0 20px;
    position: relative;
    border-top: 1px solid var(--border-color);
}
.footer-logo { max-width: 160px; margin-bottom: 20px; }
.footer-text { color: var(--text-body); margin-bottom: 20px; line-height: 1.8; }
.footer-social { margin-bottom: 24px; }
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px;
    background-color: var(--bg-light); color: var(--primary);
    margin-right: 8px; transition: var(--transition);
    border: 1px solid var(--border-color);
}
.footer-social a:hover { background-color: var(--primary); color: #fff; transform: translateY(-3px); }
.footer h5 {
    font-size: 16px; margin-bottom: 20px;
    position: relative; padding-bottom: 10px; color: var(--text-dark);
}
.footer h5::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 30px; height: 2px; background-color: var(--primary);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-body); text-decoration: none; transition: var(--transition); padding-left: 0; font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.footer-contact p { margin-bottom: 12px; color: var(--text-body); display: flex; align-items: flex-start; }
.footer-contact i { color: var(--primary); margin-right: 12px; margin-top: 4px; }
.footer-contact a { color: var(--text-body); text-decoration: none; transition: var(--transition); }
.footer-contact a:hover { color: var(--primary); }
.copyright {
    text-align: center; color: var(--text-muted); padding-top: 24px;
    margin-top: 40px; border-top: 1px solid var(--border-color); font-size: 0.85rem;
}

/* ==============================
   Responsive Styles
   ============================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--bg-main); padding: 16px;
        border-radius: var(--border-radius-sm); box-shadow: var(--shadow-sm); margin-top: 12px;
    }
    .nav-link::after { display: none; }
    .hero-section { padding: 50px 0; }
    .hero-content { text-align: center; margin-bottom: 30px; }
}

@media (max-width: 767px) {
    .feature-card-legacy { flex-direction: column; text-align: center; }
    .feature-icon-legacy { margin-right: 0; margin-bottom: 12px; margin-left: auto; margin-right: auto; }
    .footer h5::after { left: 50%; transform: translateX(-50%); }
    .footer h5, .footer-text, .footer-social, .footer-links, .footer-contact { text-align: center; }
    .footer-links a { padding-left: 0; }
    .footer-links a:hover { padding-left: 0; }
    .footer-contact p { justify-content: center; }
}

@media (max-width: 575px) {
    .hero-section { padding: 30px 0; }
    .hero-content h1 { font-size: 26px; }
    .feature-card-legacy { padding: 18px; }
    .feature-icon-legacy { width: 48px; height: 48px; font-size: 18px; }
    .product-content { padding: 14px; }
    .product-content h3 { font-size: 16px; }
    .price { font-size: 16px; }
    .footer { padding: 40px 0 16px; }
}

@media (max-width: 768px) {
    .discount-code form { flex-direction: column; }
    .discount-code button { width: 100%; }
}

/* ==============================
   Animation Styles
   ============================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn { animation: fadeIn 0.5s ease-out forwards; }

/* ==============================
   Utility Classes
   ============================== */
.text-primary { color: var(--primary) !important; }
.text-gold { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-light { background-color: var(--bg-light) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.rounded-sm { border-radius: var(--border-radius-sm) !important; }
.rounded-md { border-radius: var(--border-radius-md) !important; }
.rounded-lg { border-radius: var(--border-radius-lg) !important; }
.transition { transition: var(--transition) !important; }
.hover-lift { transition: var(--transition) !important; }
.hover-lift:hover { transform: translateY(-4px) !important; }
.hover-scale { transition: var(--transition) !important; }
.hover-scale:hover { transform: scale(1.03) !important; }
.skip-link:focus { top: 0; }
