/* ========================================
   Dawah Book Shop — Main Stylesheet
   ======================================== */

:root {
    --primary: #013B2F;
    --primary-light: #02503F;
    --primary-dark: #012A22;
    --secondary: #FFFFFF;
    --accent: #C9A227;
    --accent-light: #DDBA45;
    --accent-dark: #A8881F;
    --danger: #A52A2A;
    --light-bg: #F8F9FA;
    --border: #E5E7EB;
    --text-dark: #1F2937;
    --text-muted: #6B7280;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--secondary);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============ RESPONSIVE HELPERS ============ */
.mobile-only { display: block; }
.desktop-only { display: none; }

@media (min-width: 1024px) {
    .mobile-only { display: none !important; }
    .desktop-only { display: block !important; }
}

/* ============ HEADER ============ */
.site-header {
    background: var(--primary);
    color: var(--secondary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    color: var(--secondary);
}

.logo i { color: var(--accent); font-size: 22px; }

.header-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.header-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.header-search input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-size: 14px;
}

.header-search input:focus {
    outline: 2px solid var(--accent);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    position: relative;
    transition: color 0.2s, background 0.2s;
}

.icon-btn:hover {
    color: var(--accent);
    background: rgba(255,255,255,0.08);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.header-nav {
    display: flex;
    gap: 32px;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.header-nav a {
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.header-nav a:hover { color: var(--accent); }

/* Mobile drawer */
.mobile-drawer {
    display: none;
    background: var(--primary-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-drawer.open { display: block; }

.mobile-drawer nav {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
}

.mobile-drawer nav a {
    padding: 12px;
    color: var(--secondary);
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.2s;
}

.mobile-drawer nav a:hover { background: rgba(255,255,255,0.08); }

/* ============ MAIN ============ */
.site-main {
    min-height: calc(100vh - 200px);
    padding-bottom: 80px;
}

@media (min-width: 1024px) {
    .site-main { padding-bottom: 40px; }
}

/* ============ BUTTONS ============ */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--secondary);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover { background: var(--primary-light); }

.btn-accent {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-accent:hover { background: var(--accent-light); }

/* ============ HERO PLACEHOLDER ============ */
.hero-placeholder {
    padding: 60px 16px;
    text-align: center;
}

.hero-placeholder h1 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
}

.hero-placeholder p { color: var(--text-muted); }

/* ============ FOOTER ============ */
.site-footer {
    background: var(--primary);
    color: var(--secondary);
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0;
}

@media (min-width: 640px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 16px;
    color: var(--accent);
}

.footer-col h3 { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.footer-col h4 { font-size: 16px; }

.footer-col p,
.footer-col ul li a {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
}

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a:hover { color: var(--accent); }

.contact-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    margin-bottom: 10px;
}

.contact-list i { color: var(--accent); }

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--secondary);
    transition: background 0.2s, color 0.2s;
}

.social-links a:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
}

@media (min-width: 640px) {
    .footer-bottom .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============ BOTTOM NAV (MOBILE) ============ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary);
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    z-index: 90;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 4px;
    gap: 4px;
    font-size: 11px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-item i { font-size: 18px; }

.nav-item.active,
.nav-item:hover { color: var(--primary); }
/* ============ DROPDOWN MENU ============ */
.dropdown {
    position: relative;
}

.dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    min-width: 220px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 200;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: var(--text-dark);
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
}

.dropdown-menu a:hover {
    background: var(--light-bg);
    color: var(--primary);
}

.dropdown-menu a i {
    width: 16px;
    color: var(--accent);
}