/* ═══════════════════════════════════════════
   CASEPOP — Shared Base Styles
   ═══════════════════════════════════════════ */

:root {
    --bg-cream: #faf9f7;
    --text-dark: #1a1a1a;
    --text-muted: #6b6b6b;
    --border-light: #e8e6e1;
    --accent: #1a1a1a;
    --accent-hover: #404040;
    --sale-red: #d9413d;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fff;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }

/* ── Announcement Bar ── */
.announcement-bar {
    background: var(--accent);
    color: #fff;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 8px 0;
    text-transform: uppercase;
}
.announcement-bar a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Navbar ── */
.navbar {
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
}
.navbar-brand {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--accent) !important;
}
.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark) !important;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 8px 16px !important;
}
.nav-link:hover { color: var(--text-muted) !important; }
.nav-icons { font-size: 1.2rem; }
.nav-icons a { color: var(--text-dark); margin-left: 18px; }
.nav-icons a:hover { color: var(--text-muted); }
.nav-icons .badge {
    font-size: 0.6rem;
    top: -6px;
    right: -8px;
}

/* ── Nav Language Select ── */
.nav-lang-select {
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-dark);
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    text-transform: uppercase;
    margin-right: 14px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%231a1a1a' d='M0 0l4 5 4-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    padding-right: 20px;
}
.nav-lang-select:hover {
    border-color: var(--accent);
}
.nav-lang-select option {
    color: #000;
    background: #fff;
    text-transform: none;
    font-weight: 400;
}

/* ── Section Header ── */
.section-header {
    text-align: center;
    padding: 60px 0 40px;
}
.section-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.section-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
}

/* ── Product Grid ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-bottom: 60px;
}
.product-card {
    position: relative;
    transition: transform 0.35s ease;
}
.product-card:hover { transform: translateY(-6px); }
.product-card .product-media {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: var(--bg-cream);
    aspect-ratio: 1 / 1;
    margin-bottom: 14px;
}
.product-card .product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .product-media img {
    transform: scale(1.06);
}
.product-card .product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    z-index: 2;
}
.product-card .product-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(8px);
    transition: all 0.3s ease;
}
.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}
.product-card .product-actions button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--accent);
    font-size: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s;
}
.product-card .product-actions button:hover {
    background: var(--accent);
    color: #fff;
}
.product-info .product-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.3em;
}
.product-info .product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
}
.product-info .product-price .original {
    font-size: 0.8rem;
    font-weight: 400;
    color: #b0b0b0;
    text-decoration: line-through;
    margin-left: 8px;
}
.product-info .product-price .sale-color {
    color: var(--sale-red);
}

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

/* ── Newsletter ── */
.newsletter {
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 64px 20px;
    margin-top: 20px;
}
.newsletter h3 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.newsletter p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 28px;
}
.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 8px;
    max-width: 460px;
    margin: 0 auto;
}
.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 3px;
    font-size: 0.9rem;
    outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { border-color: #fff; }
.newsletter-form button {
    padding: 14px 32px;
    border: none;
    background: #fff;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
}
.newsletter-form button:hover { background: var(--bg-cream); }

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

/* ── Newsletter message & coupon ── */
.newsletter-msg {
    margin: 18px auto 0;
    font-size: 0.88rem;
    font-weight: 500;
    max-width: 460px;
}
.newsletter-msg.success { color: #8be0a4; }
.newsletter-msg.error { color: #ff9a9a; }
.newsletter-msg.info { color: rgba(255,255,255,0.8); }

.newsletter-coupon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 16px auto 0;
    padding: 10px 16px;
    border: 1px dashed rgba(255,255,255,0.5);
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    font-size: 0.9rem;
}
.newsletter-coupon-label { opacity: 0.8; }
.newsletter-coupon code {
    font-family: 'Inter', monospace;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1rem;
    background: transparent;
    color: #fff;
    padding: 2px 0;
}
.newsletter-copy {
    border: 1px solid rgba(255,255,255,0.5);
    background: transparent;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}
.newsletter-copy:hover { background: #fff; color: var(--accent); }

.newsletter-form button:disabled { opacity: 0.6; cursor: default; }

/* ── Footer ── */
.site-footer {
    background: #f5f4f1;
    padding: 64px 0 32px;
}
.site-footer h6 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    color: var(--accent);
}
.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer .footer-links li { margin-bottom: 8px; }
.site-footer .footer-links a {
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: color 0.2s;
}
.site-footer .footer-links a:hover { color: var(--accent); }
.site-footer .footer-brand {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}
.site-footer .footer-about {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 280px;
}
.site-footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8e6e1;
    color: var(--text-dark);
    margin-right: 8px;
    font-size: 0.95rem;
    transition: all 0.25s;
}
.site-footer .social-icons a:hover {
    background: var(--accent);
    color: #fff;
}
.site-footer .footer-bottom {
    border-top: 1px solid var(--border-light);
    margin-top: 48px;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.site-footer .footer-bottom .payment-icons i {
    font-size: 1.3rem;
    margin-left: 10px;
    color: var(--text-muted);
}

/* ── Buttons ── */
.btn-primary-dark {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 36px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary-dark:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.btn-outline-dark {
    display: inline-block;
    background: transparent;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 36px;
    border-radius: 3px;
    border: 1.5px solid var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-outline-dark:hover {
    background: var(--accent);
    color: #fff;
}

/* ── Page Banner ── */
.page-banner {
    background: var(--bg-cream);
    padding: 48px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}
.page-banner h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}
.page-banner .breadcrumb {
    justify-content: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}
.page-banner .breadcrumb a { color: var(--text-muted); }
.page-banner .breadcrumb a:hover { color: var(--accent); }
.page-banner .breadcrumb .active { color: var(--accent); }

/* ── User Dropdown ── */
.nav-icons .dropdown-toggle::after {
    display: none;
}
.nav-icons .dropdown-menu {
    border: 1px solid var(--border-light);
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    margin-top: 12px;
    min-width: 200px;
}
.nav-icons .dropdown-header {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    padding: 4px 18px 8px;
    text-transform: none;
}
.nav-icons .dropdown-item {
    font-size: 0.85rem;
    padding: 8px 18px;
    color: var(--text-dark);
    transition: background 0.15s;
}
.nav-icons .dropdown-item i {
    margin-right: 8px;
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
}
.nav-icons .dropdown-item:hover {
    background: var(--bg-cream);
    color: var(--accent);
}
.nav-icons .dropdown-divider {
    margin: 4px 0;
    border-color: var(--border-light);
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}
.empty-state .empty-icon {
    font-size: 4rem;
    color: var(--border-light);
    margin-bottom: 20px;
}
.empty-state h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.empty-state p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}
