/* ===== CSS VARIABLES ===== */
:root {
    --primary: #091729;
    --primary-light: #0a1c3b;
    --primary-dark: #091729;
    --accent: #0b7379;
    --accent-light: #1a9aa0;
    --light: #f0f6f7;
    --bg: #f5f8fa;
    --text: #2d3436;
    --text-light: #8797a3;
    --warm-gray: #b2adad;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(9,23,41,0.08);
    --shadow-hover: 0 8px 30px rgba(9,23,41,0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Lato', 'Inter', -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--primary-light); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary); }
img { max-width: 100%; }

/* ===== BRAND FONTS ===== */
.font-display { font-family: 'Playfair Display SC', serif; }
.font-body { font-family: 'Lato', sans-serif; }
.font-script { font-family: 'Alex Brush', cursive; }

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

/* ===== TOP BAR ===== */
.top-bar { background: var(--primary-dark); color: rgba(255,255,255,0.9); padding: 8px 0; font-size: 0.85rem; }
.top-bar-content { display: flex; justify-content: flex-end; gap: 2rem; }
.top-bar-item { display: inline-flex; align-items: center; gap: 0.3rem; }

/* ===== NAVBAR ===== */
.navbar { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 1000; }
.nav-content { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; max-width: 1200px; margin: 0 auto; }
.logo { display: flex; flex-direction: row; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-img { height: 90px; width: 90px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.logo-text { font-size: 2.8rem; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.logo-highlight { color: var(--accent); }
.logo-sub { font-size: 0.7rem; color: var(--text-light); letter-spacing: 0.5px; display: none; }
.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-links a { padding: 0.4rem 0.5rem; color: var(--text); text-decoration: none; font-size: 0.85rem; font-weight: 500; border-radius: 5px; transition: all 0.3s; white-space: nowrap; }
.nav-links a:hover { color: var(--primary); background: var(--light); }
.nav-cta { color: var(--accent) !important; font-weight: 600 !important; }
.nav-cta:hover { color: var(--accent-light) !important; background: rgba(11, 115, 121, 0.08) !important; }
.nav-links a.active,
.nav-links a.active:hover { color: var(--accent) !important; font-weight: 700 !important; position: relative; background: transparent !important; }
.nav-links a.active::after { content: ''; position: absolute; bottom: 2px; left: 0.5rem; right: 0.5rem; height: 2.5px; background: var(--accent); border-radius: 2px; }
.nav-links a.nav-cta.active { color: var(--accent) !important; font-weight: 700 !important; }
.nav-links a.nav-cta.active::after { display: block; }
.cart-link { position: relative; padding: 0.5rem 0.8rem !important; font-size: 1.2rem !important; }
.cart-count { position: absolute; top: -2px; right: 0; background: var(--accent); color: white; font-size: 0.7rem; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.nav-account, .nav-login { padding: 0.5rem 0.8rem !important; font-size: 1.1rem !important; color: var(--primary) !important; display: flex; align-items: center; gap: 0.3rem; }
.nav-account:hover { color: var(--primary-dark) !important; }
.nav-account-name { font-size: 0.8rem; font-weight: 600; background: var(--light); padding: 0.15rem 0.5rem; border-radius: 20px; }
.nav-login { font-size: 1.2rem !important; }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }
@media (max-width: 768px) {
    .top-bar-content { justify-content: center; font-size: 0.75rem; gap: 1rem; flex-wrap: wrap; }
    .mobile-toggle { display: block; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; box-shadow: var(--shadow); padding: 1rem; z-index: 999; }
    .nav-links.show { display: flex; }
    .nav-links a { width: 100%; padding: 0.7rem !important; text-align: center; }
    .nav-links .nav-cta { margin-top: 0.5rem; }
    .nav-account, .nav-login { justify-content: center; padding: 0.8rem !important; font-size: 1rem !important; }
}

/* ===== HERO ===== */
.hero { position: relative; min-height: 500px; display: flex; align-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); opacity: 0.5; }
.hero-content { position: relative; z-index: 1; max-width: 700px; color: white; padding: 4rem 0; }
.hero-title { font-size: 3.5rem; font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; font-family: 'Playfair Display SC', serif; }
.text-highlight { color: var(--accent-light); }
.hero-subtitle { font-size: 1.2rem; line-height: 1.7; opacity: 0.9; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 768px) { .hero-title { font-size: 2.2rem; } .hero { min-height: 400px; } }

/* ===== PAGE HERO ===== */
.page-hero { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; padding: 3rem 0; text-align: center; }
.page-hero-title { font-size: 2.5rem; font-weight: 700; font-family: 'Playfair Display SC', serif; margin-bottom: 0.5rem; }
.page-hero-subtitle { font-size: 1.1rem; opacity: 0.85; }
.bg-gradient-gold { background: linear-gradient(135deg, #B8942E, #C8A84C) !important; }
@media (max-width: 768px) { .page-hero-title { font-size: 1.8rem; } }

/* ===== BUTTONS ===== */
.btn { display: inline-block; padding: 0.7rem 1.5rem; border-radius: 25px; font-size: 0.95rem; font-weight: 600; text-decoration: none; transition: all 0.3s; border: none; cursor: pointer; text-align: center; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* ===== SOCIAL LINKS ===== */
.social-links { display: flex; gap: 0.5rem; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--light); color: var(--primary); font-size: 1.2rem; text-decoration: none; transition: all 0.3s; }
.social-link:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.top-bar-social { display: flex; align-items: center; gap: 0.8rem; }
.top-bar-social a { color: rgba(255,255,255,0.9); font-size: 1rem; text-decoration: none; transition: color 0.3s; }
.top-bar-social a:hover { color: white; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }

/* ===== SECTIONS ===== */
.section { padding: 4rem 0; }
.bg-light { background: var(--light); }
.section-title { font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; font-family: 'Playfair Display SC', serif; }
.section-subtitle { font-size: 1.05rem; color: var(--text-light); margin-bottom: 2rem; }
.text-center { text-align: center; }
.bg-primary-cta { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; padding: 4rem 0; }
.cta-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 1rem; font-family: 'Playfair Display', serif; }
.cta-text { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; }

/* ===== ABOUT PREVIEW ===== */
.about-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-preview-text p { color: var(--text-light); line-height: 1.7; margin-bottom: 1.5rem; }
.about-highlights { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.8rem; margin-bottom: 1.5rem; }
.highlight-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: var(--text); }
.highlight-icon { color: var(--accent); font-size: 1.2rem; }
@media (max-width: 768px) { .about-preview { grid-template-columns: 1fr; } }

/* ===== IMAGE PLACEHOLDER ===== */
.image-placeholder { background: var(--light); border-radius: var(--radius); min-height: 300px; display: flex; align-items: center; justify-content: center; }
.image-placeholder-dark { background: var(--primary-dark); color: white; }
.placeholder-content { text-align: center; }
.placeholder-icon { font-size: 3rem; display: block; margin-bottom: 0.5rem; }

/* ===== ABOUT PREVIEW DOCTOR PHOTO ===== */
.about-preview-image img.about-doctor-photo { width: 100%; max-width: 400px; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.12); display: block; }
.placeholder-content span { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.placeholder-content small { display: block; font-size: 0.8rem; opacity: 0.8; }

/* ===== SERVICES GRID ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); transition: all 0.3s; border: 1px solid transparent; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary-light); }
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { color: var(--primary); margin-bottom: 0.8rem; font-size: 1.1rem; }
.service-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }
.btn-link { color: var(--primary-light); font-weight: 600; font-size: 0.9rem; }
@media (max-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .services-grid { grid-template-columns: 1fr; } }

/* ===== PROGRAM PREVIEW ===== */
.program-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.program-features { margin: 1.5rem 0; }
.feature-item { padding: 0.5rem 0; color: var(--text-light); font-size: 0.95rem; }
@media (max-width: 768px) { .program-preview { grid-template-columns: 1fr; } }

/* ===== PRODUCTS GRID ===== */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.product-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-image { position: relative; height: 180px; overflow: hidden; }
.product-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--light), #d4e6f1); display: flex; align-items: center; justify-content: center; }
.product-placeholder-icon { font-size: 3rem; opacity: 0.5; }
.product-img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-img { width: 100%; max-height: 400px; object-fit: contain; border-radius: var(--radius); background: var(--light); }
.product-badge { position: absolute; top: 10px; right: 10px; background: var(--accent); color: white; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.product-info { padding: 1.2rem; }
.product-category { font-size: 0.75rem; color: var(--primary-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.product-info h3 { font-size: 1rem; color: var(--primary); margin: 0.3rem 0; line-height: 1.3; }
.product-description, .product-info p { font-size: 0.8rem; color: var(--text-light); line-height: 1.5; margin-bottom: 0.5rem; }
.product-price { margin: 0.8rem 0; display: flex; gap: 0.5rem; align-items: center; }
.price { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.price-original { font-size: 0.95rem; color: #999; text-decoration: line-through; }
.price-sale { font-size: 1.2rem; font-weight: 700; color: var(--accent); }
.product-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
@media (max-width: 992px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .products-grid { grid-template-columns: 1fr; } }

/* ===== FACT CARD ===== */
.fact-card { background: white; padding: 2.5rem; border-radius: var(--radius); text-align: center; max-width: 700px; margin: 0 auto; box-shadow: var(--shadow); }
.fact-card h3 { color: var(--primary); font-size: 1.5rem; margin-bottom: 1rem; font-family: 'Playfair Display', serif; }
.fact-text { font-size: 1.2rem; line-height: 1.7; color: var(--text-light); font-style: italic; margin-bottom: 1rem; }
.fact-category { display: inline-block; background: var(--light); padding: 0.3rem 1rem; border-radius: 12px; font-size: 0.8rem; color: var(--primary); margin-bottom: 1rem; }

/* ===== BLOG GRID ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.blog-image { height: 180px; overflow: hidden; }
.blog-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #e8f0fe, #d4e6f1); display: flex; align-items: center; justify-content: center; }
.blog-placeholder-icon { font-size: 2.5rem; opacity: 0.4; }
.blog-info { padding: 1.2rem; }
.blog-date { font-size: 0.8rem; color: #888; }
.blog-info h3 { font-size: 1.05rem; color: var(--primary); margin: 0.5rem 0; line-height: 1.3; }
.blog-info p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; margin-bottom: 0.8rem; }
@media (max-width: 992px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .blog-grid { grid-template-columns: 1fr; } }

/* ===== FOOTER ===== */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.85); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: white; font-size: 1.1rem; margin-bottom: 1rem; font-weight: 600; }
.footer-col p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.5rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.7); padding: 0.3rem 0; font-size: 0.9rem; }
.footer-col a:hover { color: white; }
.footer-contact { font-size: 0.85rem !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; }
.footer-bottom p { font-size: 0.85rem; }
.footer-small { font-size: 0.75rem !important; opacity: 0.6; margin-top: 0.5rem; }
.powered-by { margin-top: 1.2rem; display: flex; justify-content: center; }
.powered-by-link { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.55); font-size: 0.8rem; text-decoration: none; transition: color 0.3s, opacity 0.3s; opacity: 0.8; }
.powered-by-link:hover { color: white; opacity: 1; }
.powered-by-logo { height: 20px; width: auto; opacity: 0.8; transition: opacity 0.3s; }
.powered-by-link:hover .powered-by-logo { opacity: 1; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== IN-STOCK ===== */
.in-stock { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.low-stock { color: #e67e22; font-weight: 600; font-size: 0.9rem; }
.out-of-stock { color: #e74c3c; font-weight: 600; font-size: 0.9rem; }

/* ===== ADD TO CART ===== */
.add-to-cart-form { margin-top: 1.5rem; }
.qty-selector { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.qty-selector label { font-weight: 500; }
.qty-selector input { width: 70px; padding: 0.5rem; border: 2px solid #ddd; border-radius: 8px; font-size: 1rem; text-align: center; }

/* ===== RESPONSIVE HELPERS ===== */
@media (max-width: 768px) {
    .section { padding: 2.5rem 0; }
    .section-title { font-size: 1.6rem; }
    .hero-buttons .btn { width: 100%; }
}

/* ===== NOTICE BOARD ===== */
.notice-bar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}
.notice-bar-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: scroll-notices 30s linear infinite;
}
@keyframes scroll-notices {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.notice-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    padding: 0 1rem;
    font-size: 0.85rem;
}
.notice-bar-item.important { font-weight: 700; }
.notice-bar-item .badge {
    background: var(--accent);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
}

/* ===== NOTICE CARDS ===== */
.notice-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
    margin-bottom: 1rem;
    transition: box-shadow 0.3s;
}
.notice-card:hover { box-shadow: var(--shadow-hover); }
.notice-card.important {
    border-left-color: var(--accent);
    background: linear-gradient(135deg, #f0fff4, white);
}
.notice-card .notice-type {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.notice-type.special { background: #fef3c7; color: #92400e; }
.notice-type.news { background: #dbeafe; color: #1e40af; }
.notice-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--primary); }
.notice-card p { color: #666; font-size: 0.9rem; margin-bottom: 0.8rem; }
.notice-card .notice-date { font-size: 0.75rem; color: #999; }

/* ===== PROMO CAROUSEL BANNER (full-width, poster 2/3 + dark text panel 1/3) ===== */
.promo-carousel { position: relative; width: 100%; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,0.08); }
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; }
.carousel-slide { min-width: 100%; opacity: 0; transition: opacity 0.5s ease; position: absolute; top: 0; left: 0; }
.carousel-slide.active { position: relative; opacity: 1; }
.carousel-link { display: block; text-decoration: none; color: inherit; position: relative; overflow: hidden; min-height: 440px; }
.carousel-image-wrap { position: absolute; inset: 0; }
.carousel-image { width: 100%; height: 100%; object-fit: cover; }
.carousel-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(14,47,68,0.85), rgba(26,82,118,0.7)); }
.carousel-content { position: relative; z-index: 2; padding: 3rem; display: flex; flex-direction: column; justify-content: center; min-height: 440px; }
.carousel-content.has-image { background: transparent; }
.carousel-content:not(.has-image) { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }

/* Slides with a poster image: poster fills 2/3, dark text panel with the link fills 1/3 */
.carousel-slide.has-image .carousel-link { display: flex; flex-direction: row; align-items: stretch; height: clamp(400px, 38vw, 540px); }
.carousel-slide.has-image .carousel-image-wrap { position: relative; flex: 0 0 66.666%; min-height: 0; height: auto; background: #fff; }
.carousel-slide.has-image .carousel-image { object-fit: cover; transition: transform 0.3s ease; }
.carousel-slide.has-image .carousel-image-wrap:hover .carousel-image { transform: scale(1.02); }
.carousel-slide.has-image .carousel-overlay { display: none; }
.carousel-slide.has-image .carousel-content { flex: 1 1 33.333%; min-height: auto; justify-content: center; padding: 2.5rem 3rem; background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%); }
.carousel-slide.has-image .carousel-desc { max-width: 100%; }
.carousel-zoom-hint { position: absolute; top: 14px; right: 14px; z-index: 6; background: rgba(9,23,41,0.7); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 6px 14px; border-radius: 20px; pointer-events: none; display: inline-flex; align-items: center; gap: 6px; }
.carousel-badge { display: inline-block; align-self: flex-start; padding: 0.25rem 1rem; border-radius: 20px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; background: var(--primary); color: white; margin-bottom: 1rem; }
.carousel-badge.badge-gold { background: linear-gradient(135deg, #B8942E, #C8A84C); }
.carousel-title { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: white; margin-bottom: 0.8rem; line-height: 1.2; }
.carousel-desc { font-size: 1.05rem; color: rgba(255,255,255,0.85); line-height: 1.6; margin-bottom: 1.5rem; max-width: 600px; }
.carousel-cta { display: inline-block; align-self: flex-start; padding: 0.7rem 1.8rem; background: var(--accent); color: white; border-radius: 25px; font-weight: 600; font-size: 0.95rem; transition: all 0.3s; }
.carousel-cta:hover { background: #1a8a4a; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(39,174,96,0.4); }

.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(255,255,255,0.2); color: white; border: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; transition: all 0.3s; }
.carousel-btn:hover { background: rgba(255,255,255,0.35); }
.carousel-prev { left: 15px; }
.carousel-next { right: 15px; }
.carousel-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 8px; }
.carousel-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; }
.carousel-dot.active { background: white; width: 28px; border-radius: 6px; }

/* Promo lightbox (click poster to enlarge) */
.promo-lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 10000; align-items: center; justify-content: center; cursor: zoom-out; }
.promo-lightbox.open { display: flex; }
.promo-lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 10px; box-shadow: 0 12px 50px rgba(0,0,0,0.7); }
.promo-lightbox-close { position: absolute; top: 16px; right: 28px; color: #fff; font-size: 3rem; line-height: 1; cursor: pointer; z-index: 10; font-weight: 300; }
.promo-lightbox-close:hover { color: var(--accent-light); }
.promo-lightbox-caption { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.65); color: #fff; font-size: 1rem; padding: 10px 24px; border-radius: 24px; max-width: 88vw; text-align: center; }

@media (max-width: 768px) {
    .carousel-content { padding: 2rem 1.5rem; min-height: 280px; }
    .carousel-link { min-height: 380px; }
    .carousel-slide.has-image .carousel-link { flex-direction: column; height: auto; }
    .carousel-slide.has-image .carousel-image-wrap { flex: none; width: 100%; height: 62vw; max-height: 440px; }
    .carousel-slide.has-image .carousel-content { padding: 1rem 1.2rem; }
    .carousel-title { font-size: 1.4rem; }
    .carousel-desc { font-size: 0.9rem; }
    .carousel-btn { width: 36px; height: 36px; font-size: 1rem; }
    .carousel-prev { left: 8px; }
    .carousel-next { right: 8px; }
}

/* ===== MEDIA CARDS ===== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.media-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.media-card:hover { box-shadow: var(--shadow-hover); }
.media-card .media-type-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.media-type-badge.article { background: #dbeafe; color: #1e40af; }
.media-type-badge.video { background: #fce7f3; color: #9d174d; }
.media-type-badge.social { background: #fef3c7; color: #92400e; }
.media-card .media-content { padding: 1.2rem; }
.media-card .media-icon {
    font-size: 2.5rem;
    text-align: center;
    padding: 1.5rem;
    background: var(--light);
}
.media-card h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 0.5rem; }
.media-card p { color: #666; font-size: 0.85rem; margin-bottom: 1rem; }
.media-card .media-meta { font-size: 0.75rem; color: #999; }
.media-card .media-link { display: inline-flex; align-items: center; gap: 0.3rem; }
.media-card .btn-sm { padding: 0.3rem 0.8rem; font-size: 0.8rem; }

/* ===== FILTER TABS ===== */
.filter-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.filter-tab {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #666;
}
.filter-tab:hover { border-color: var(--primary-light); color: var(--primary); }
.filter-tab.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== ADD TO CART FORM INLINE ===== */
input[type="number"]::-webkit-inner-spin-button { opacity: 1; }

/* ===== WHATSAPP FLOATING WIDGET ===== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.whatsapp-float .whatsapp-tooltip {
    background: white;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
    white-space: nowrap;
    pointer-events: none;
}
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}
.whatsapp-float .whatsapp-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    animation: whatsapp-pulse 2s infinite;
}
.whatsapp-float .whatsapp-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}
.whatsapp-float:hover .whatsapp-icon {
    transform: scale(1.08);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}
@keyframes whatsapp-pulse {
    0% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6); }
    100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
}
@media (max-width: 768px) {
    .whatsapp-float { bottom: 15px; right: 15px; }
    .whatsapp-float .whatsapp-icon { width: 48px; height: 48px; }
    .whatsapp-float .whatsapp-icon svg { width: 28px; height: 28px; }
    .whatsapp-float .whatsapp-tooltip { display: none; }
}

/* ===== WHATSAPP LINK STYLING ===== */
.whatsapp-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}
.whatsapp-link:hover {
    opacity: 0.8;
}
.top-bar .whatsapp-link { color: rgba(255,255,255,0.9); }
.top-bar .whatsapp-link:hover { color: white; }
.footer .whatsapp-link { color: rgba(255,255,255,0.7); }
.footer .whatsapp-link:hover { color: white; }
/* Footer social icons: white on semi-transparent circle, matching dark footer */
.footer .social-links { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer .social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.12); color: white; font-size: 1rem; text-decoration: none; transition: all 0.3s; }
.footer .social-link:hover { background: rgba(255,255,255,0.25); color: white; transform: translateY(-2px); }
.whatsapp-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #25D366;
    color: white !important;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s;
}
.whatsapp-social-icon:hover {
    background: #128C7E;
    transform: translateY(-2px);
}
.top-bar-social .whatsapp-social-icon {
    width: auto;
    height: auto;
    background: none;
    color: rgba(255,255,255,0.9) !important;
    font-size: 1rem;
    border-radius: 0;
}
.top-bar-social .whatsapp-social-icon:hover {
    color: white !important;
    background: none;
    transform: none;
}

/* ============================================================
   NEWS TICKER — scrolling strip at the very top of the homepage
   (replaces the old "Latest Offers & News" carousel, 2026-11-16)
   ============================================================ */
/* Gold band so it lifts off the white page instead of blending into the header */
.news-ticker { --nt-gold-a: #F6CE63; --nt-gold-b: #E7A63A; --nt-gold-c: #D68E24;
    background: linear-gradient(100deg, var(--nt-gold-a) 0%, var(--nt-gold-b) 48%, var(--nt-gold-c) 100%);
    color: var(--primary); overflow: hidden; position: relative;
    border-top: 1px solid rgba(9,23,41,0.10); border-bottom: 1px solid rgba(9,23,41,0.22);
    box-shadow: 0 6px 20px rgba(9,23,41,0.16), inset 0 1px 0 rgba(255,255,255,0.35); }
.news-ticker-inner { display: flex; align-items: stretch; min-height: 78px; }
.news-ticker-label { flex: 0 0 auto; position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 0.5rem; background: var(--primary); color: #F7D97F; font-family: 'Lato', 'Inter', sans-serif; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; padding: 0 1.35rem; white-space: nowrap; }
.news-ticker-label i { font-size: 0.95rem; color: #F6CE63; }
.news-ticker-label::after { content: ''; position: absolute; right: -16px; top: 0; bottom: 0; width: 16px; background: linear-gradient(90deg, rgba(9,23,41,0.85), rgba(9,23,41,0)); pointer-events: none; }
.news-ticker-viewport { position: relative; flex: 1 1 auto; overflow: hidden; }
.news-ticker-viewport::before, .news-ticker-viewport::after { content: ''; position: absolute; top: 0; bottom: 0; width: 26px; z-index: 2; pointer-events: none; }
.news-ticker-viewport::before { left: 0; background: linear-gradient(90deg, rgba(246,206,99,0.95), rgba(246,206,99,0)); }
.news-ticker-viewport::after { right: 0; background: linear-gradient(270deg, rgba(214,142,36,0.95), rgba(214,142,36,0)); }
.news-ticker-track { display: flex; align-items: stretch; width: max-content; animation: nt-scroll 62s linear infinite; will-change: transform; }
@keyframes nt-scroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.news-ticker:hover .news-ticker-track,
.news-ticker:focus-within .news-ticker-track { animation-play-state: paused; }
.nt-item { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.9rem; color: var(--primary) !important; line-height: 1.22; text-decoration: none; white-space: nowrap; border-radius: 8px; transition: background 0.2s, transform 0.2s; }
.nt-item:hover, .nt-item:focus-visible { color: var(--primary) !important; background: rgba(255,255,255,0.42); }
.nt-text { display: inline-flex; flex-direction: column; justify-content: center; gap: 1px; }
.nt-badge { background: #fff; color: var(--primary); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 999px; box-shadow: 0 1px 3px rgba(9,23,41,0.18); }
.nt-badge.nt-gold { background: var(--primary); color: #F7D97F; box-shadow: none; }
.nt-title { font-size: 0.98rem; font-weight: 800; letter-spacing: 0.005em; }
.nt-desc { color: rgba(9,23,41,0.70); font-size: 0.8rem; font-weight: 500; }
.nt-arrow { color: rgba(9,23,41,0.55); font-size: 0.9rem; }
.nt-sep { align-self: center; color: rgba(9,23,41,0.28); font-size: 0.55rem; padding: 0 0.1rem; }
.news-ticker-all { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.4rem; margin: 0.7rem 0.9rem 0.7rem 0.6rem; padding: 0 1.15rem; background: var(--primary); border-radius: 999px; color: #F7D97F !important; font-size: 0.8rem; font-weight: 800; white-space: nowrap; text-decoration: none; box-shadow: 0 2px 8px rgba(9,23,41,0.25); }
.news-ticker-all:hover { background: #0a1c3b; color: #fff !important; }
@media (max-width: 900px) {
    .news-ticker-inner { min-height: 62px; }
    .nt-desc { display: none; }
    .nt-title { font-size: 0.92rem; }
    .news-ticker-label { padding: 0 0.85rem; font-size: 0.64rem; letter-spacing: 0.1em; }
    .news-ticker-all { display: none; }
    .news-ticker-track { animation-duration: 44s; }
}
@media (max-width: 480px) {
    .news-ticker-inner { min-height: 56px; }
    .nt-item { padding: 0.45rem 0.6rem; gap: 0.45rem; }
    .nt-title { font-size: 0.86rem; }
    .nt-badge { font-size: 0.55rem; padding: 0.16rem 0.45rem; }
}
@media (prefers-reduced-motion: reduce) {
    .news-ticker-track { animation: none; }
    .news-ticker-viewport { overflow-x: auto; }
}

/* ============================================================
   NOTICES PAGE  (/notices)
   ============================================================ */
.notices-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary-light)); color: #fff; padding: 3.2rem 0 2.6rem; text-align: center; }
.notices-hero h1 { font-family: 'Playfair Display', serif; font-size: 2.4rem; margin-bottom: 0.4rem; color: #fff; }
.notices-hero p { color: rgba(255,255,255,0.8); font-size: 1rem; }
.notices-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.6rem; }
.notice-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.25s, transform 0.25s; }
.notice-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.notice-card-img { width: 100%; height: 230px; object-fit: contain; background: #f7f9fa; display: block; }
.notice-card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; }
.notice-card-badge { align-self: flex-start; background: var(--light); color: var(--accent); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px; }
.notice-card-badge.gold { background: #fbeec2; color: #7a5c00; }
.notice-card h3 { font-size: 1.15rem; color: var(--primary); margin: 0; }
.notice-card p { color: var(--text-light); font-size: 0.92rem; line-height: 1.55; margin: 0; }
.notice-card .btn-link { margin-top: 0.35rem; font-weight: 700; }
.notice-card-date { font-size: 0.75rem; color: var(--text-light); letter-spacing: 0.04em; text-transform: uppercase; }
.notices-empty { text-align: center; color: var(--text-light); padding: 3rem 0; }

/* Small-screen logo sizing (the script logo was pushing the page 5px wide on phones) */
@media (max-width: 480px) {
    .logo-text { font-size: 1.9rem; }
    .logo-img { height: 62px; width: 62px; }
    .logo { gap: 0.4rem; }
}

/* Tablet-width nav: the menu row was 28px wider than the screen at ~1024px */
@media (min-width: 769px) and (max-width: 1150px) {
    .logo-text { font-size: 2.1rem; }
    .logo-img { height: 72px; width: 72px; }
    .nav-links a { padding: 0.35rem 0.34rem; font-size: 0.78rem; }
}
