/*
Theme Name: Daynite Pharmacy
Theme URI: https://daynitepharmacy.co.za/
Author: Daynite Pharmacy
Description: Day & Nite Pharmacy theme with WooCommerce support.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: daynite-pharmacy
*/

/* =========================================================
   DAY & NITE PHARMACY
   ========================================================= */

:root {
    --dnp-blue: #123b70;
    --dnp-blue-light: #1769aa;
    --dnp-orange: #f28c28;
    --dnp-dark: #172b4d;
    --dnp-light: #f5f8fb;
    --dnp-border: #e8edf2;
    --dnp-text: #333;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--dnp-text);
    background: #fff;
}

.dnp-site a { text-decoration: none; }

.dnp-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 22px;
    padding-right: 22px;
}

/* HEADER */
.dnp-header { width: 100%; background: #fff; border-bottom: 1px solid var(--dnp-border); position: relative; z-index: 1000; }
.dnp-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dnp-logo { display: flex; align-items: center; gap: 8px; color: var(--dnp-blue); font-size: 21px; font-weight: 800; line-height: 1; }
.dnp-logo span { color: var(--dnp-orange); }
.dnp-logo img { max-height: 48px; width: auto; display: block; }
.dnp-desktop-nav { display: flex; align-items: center; gap: 25px; list-style: none; margin: 0; padding: 0; }
.dnp-desktop-nav a { color: var(--dnp-dark); font-size: 14px; font-weight: 700; }
.dnp-desktop-nav a:hover { color: var(--dnp-orange); }
.dnp-header-buttons { display: flex; align-items: center; gap: 10px; }
.dnp-cart-button, .dnp-menu-button { width: 44px; height: 44px; border: 0; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; text-decoration:none; }
.dnp-cart-button { background: var(--dnp-light); color: var(--dnp-blue); position: relative; }
.dnp-cart-count { position:absolute; top:-6px; right:-6px; background:var(--dnp-orange); color:#fff; font-size:11px; font-weight:800; min-width:18px; height:18px; border-radius:9px; display:flex; align-items:center; justify-content:center; padding:0 4px; }
.dnp-menu-button { background: var(--dnp-blue); color: #fff; }
.dnp-menu-button:hover { background: var(--dnp-orange); }

/* HERO */
.dnp-hero { background: linear-gradient(135deg, var(--dnp-blue), var(--dnp-blue-light)); color: #fff; }
.dnp-hero-inner { min-height: 500px; display: flex; align-items: center; padding-top: 65px; padding-bottom: 65px; }
.dnp-hero-content { max-width: 680px; }
.dnp-label { display: inline-block; padding: 8px 15px; border-radius: 30px; background: rgba(255,255,255,.15); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.dnp-hero h1 { margin: 0 0 18px; color: #fff; font-size: 52px; line-height: 1.08; font-weight: 800; }
.dnp-hero p { margin: 0 0 30px; max-width: 600px; color: rgba(255,255,255,.92); font-size: 17px; line-height: 1.65; }
.dnp-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.dnp-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 30px; font-size: 14px; font-weight: 800; transition: .2s ease; }
.dnp-button:hover { transform: translateY(-2px); }
.dnp-button-primary { background: var(--dnp-orange); color: #fff; }
.dnp-button-secondary { background: #fff; color: var(--dnp-blue); }

/* SECTIONS */
.dnp-section { padding-top: 65px; padding-bottom: 65px; }
.dnp-section-grey { background: var(--dnp-light); }
.dnp-heading { text-align: center; margin-bottom: 35px; }
.dnp-heading h2 { margin: 0 0 10px; color: var(--dnp-blue); font-size: 32px; line-height: 1.2; font-weight: 800; }
.dnp-heading p { max-width: 620px; margin: 0 auto; color: #687386; font-size: 15px; line-height: 1.6; }

/* QUICK ACTIONS */
.dnp-action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dnp-action-card { display: block; padding: 26px 20px; background: #fff; border: 1px solid var(--dnp-border); border-radius: 18px; text-align: center; box-shadow: 0 7px 25px rgba(18,59,112,.06); transition: .25s ease; }
.dnp-action-card:hover { transform: translateY(-5px); box-shadow: 0 14px 35px rgba(18,59,112,.12); }
.dnp-action-icon { width: 58px; height: 58px; margin: 0 auto 15px; border-radius: 15px; background: var(--dnp-light); display: flex; align-items: center; justify-content: center; font-size: 27px; }
.dnp-action-card h3 { margin: 0 0 8px; color: var(--dnp-blue); font-size: 17px; }
.dnp-action-card p { margin: 0; color: #707070; font-size: 13px; line-height: 1.5; }

/* CATEGORIES */
.dnp-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dnp-category { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 65px; padding: 15px 18px; background: #fff; border: 1px solid var(--dnp-border); border-radius: 14px; color: var(--dnp-blue); font-size: 14px; font-weight: 700; transition: .2s ease; }
.dnp-category:hover { border-color: var(--dnp-orange); color: var(--dnp-orange); }
.dnp-category-arrow { color: var(--dnp-orange); font-size: 19px; }

/* PROMOTION */
.dnp-promotion { padding-top: 65px; padding-bottom: 65px; }
.dnp-promotion-box { position: relative; overflow: hidden; padding: 55px 25px; border-radius: 24px; background: linear-gradient(135deg, var(--dnp-blue), var(--dnp-blue-light)); text-align: center; }
.dnp-promotion-box:before { content: ""; position: absolute; width: 230px; height: 230px; left: -100px; top: -120px; border-radius: 50%; background: rgba(255,255,255,.07); }
.dnp-promotion-box:after { content: ""; position: absolute; width: 190px; height: 190px; right: -80px; bottom: -110px; border-radius: 50%; background: rgba(242,140,40,.18); }
.dnp-promotion-content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.dnp-promotion-box h2 { margin: 0 0 12px; color: #fff; font-size: 35px; line-height: 1.15; }
.dnp-promotion-box p { margin: 0 auto 25px; max-width: 590px; color: rgba(255,255,255,.9); font-size: 15px; line-height: 1.6; }
.dnp-subscribe-form { display: flex; max-width: 620px; margin: 0 auto; padding: 6px; background: #fff; border-radius: 50px; }
.dnp-subscribe-form input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 13px 17px; background: transparent; color: #222; font-size: 14px; }
.dnp-subscribe-form button { border: 0; padding: 13px 23px; border-radius: 40px; background: var(--dnp-orange); color: #fff; font-weight: 800; font-size: 13px; cursor: pointer; }
.dnp-subscribe-note { margin-top: 12px !important; margin-bottom: 0 !important; color: rgba(255,255,255,.65) !important; font-size: 11px !important; }

/* SERVICES */
.dnp-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dnp-service { padding: 28px; border-radius: 18px; background: var(--dnp-light); }
.dnp-service-icon { font-size: 30px; margin-bottom: 15px; }
.dnp-service h3 { margin: 0 0 8px; color: var(--dnp-blue); font-size: 18px; }
.dnp-service p { margin: 0; color: #687386; font-size: 14px; line-height: 1.6; }

/* GENERIC PAGE / BLOG CONTENT (page.php, single.php, prescription page) */
.dnp-page-hero { background: var(--dnp-light); padding: 45px 0; }
.dnp-page-hero h1 { margin: 0; color: var(--dnp-blue); font-size: clamp(28px,4vw,40px); }
.dnp-content { max-width: 860px; margin: 0 auto; padding: 45px 22px; min-height: 40vh; line-height: 1.7; }
.dnp-content .dnp-notice { background: #fff8e8; border: 1px solid #f2d49b; border-radius: 12px; padding: 18px; margin: 20px 0; }
.dnp-content h2 { color: var(--dnp-blue); }

/* WOOCOMMERCE SHOP */
.dnp-shop .woocommerce-products-header,
.dnp-shop .woocommerce-result-count,
.dnp-shop .woocommerce-ordering { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.dnp-shop ul.products { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.dnp-shop ul.products li.product { border: 1px solid var(--dnp-border); border-radius: 14px; padding: 16px; }
.dnp-shop ul.products li.product img { border-radius: 10px; }
.dnp-shop ul.products li.product .price { color: var(--dnp-blue); font-weight: 800; }
.dnp-shop ul.products li.product .button { border-radius: 30px !important; background: var(--dnp-dark) !important; }

/* FOOTER */
.dnp-footer { background: #102d53; color: #fff; padding-top: 55px; }
.dnp-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 35px; padding-bottom: 45px; }
.dnp-footer h3 { margin: 0 0 15px; color: #fff; font-size: 18px; }
.dnp-footer h4 { margin: 0 0 15px; color: #fff; font-size: 14px; }
.dnp-footer p { margin: 0; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.7; }
.dnp-footer a { display: block; margin-bottom: 9px; color: rgba(255,255,255,.75); font-size: 13px; }
.dnp-footer a:hover { color: var(--dnp-orange); }
.dnp-footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); text-align: center; }
.dnp-footer-bottom p { font-size: 12px; }

/* WHATSAPP */
.dnp-whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 9000; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff !important; display: flex; align-items: center; justify-content: center; font-size: 25px; box-shadow: 0 7px 25px rgba(0,0,0,.25); }

/* SLIDE-OUT MENU */
.dnp-overlay { position: fixed; inset: 0; z-index: 9998; background: rgba(0,0,0,.55); opacity: 0; visibility: hidden; transition: .3s ease; }
.dnp-overlay.active { opacity: 1; visibility: visible; }
.dnp-side-menu { position: fixed; top: 0; right: 0; z-index: 9999; width: min(390px, 88vw); height: 100vh; overflow-y: auto; background: #fff; transform: translateX(100%); transition: transform .35s ease; box-shadow: -10px 0 35px rgba(0,0,0,.18); }
.dnp-side-menu.active { transform: translateX(0); }
.dnp-menu-header { min-height: 75px; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--dnp-border); }
.dnp-menu-logo { color: var(--dnp-blue); font-weight: 800; font-size: 17px; }
.dnp-menu-logo span { color: var(--dnp-orange); }
.dnp-close { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--dnp-light); color: var(--dnp-blue); font-size: 25px; cursor: pointer; }
.dnp-menu-content { padding: 20px; }
.dnp-menu-item { display: flex; align-items: center; gap: 13px; min-height: 58px; margin-bottom: 7px; padding: 9px 12px; border-radius: 12px; color: var(--dnp-blue); font-size: 15px; font-weight: 700; }
.dnp-menu-item:hover { background: var(--dnp-light); color: var(--dnp-orange); }
.dnp-menu-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: var(--dnp-light); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.dnp-menu-arrow { margin-left: auto; color: #aaa; font-size: 18px; }
.dnp-menu-highlight { background: var(--dnp-orange); color: #fff !important; }
.dnp-menu-highlight .dnp-menu-icon { background: rgba(255,255,255,.18); }
.dnp-menu-highlight .dnp-menu-arrow { color: #fff; }
.dnp-menu-divider { height: 1px; margin: 18px 0; background: var(--dnp-border); }
.dnp-menu-contact { margin-top: 20px; padding: 18px; border-radius: 15px; background: var(--dnp-light); }
.dnp-menu-contact strong { display: block; margin-bottom: 7px; color: var(--dnp-blue); }
.dnp-menu-contact p { margin: 0; color: #687386; font-size: 13px; line-height: 1.6; }

/* MOBILE */
@media (max-width: 900px) {
    .dnp-desktop-nav { display: none; }
    .dnp-action-grid { grid-template-columns: repeat(2, 1fr); }
    .dnp-category-grid { grid-template-columns: repeat(2, 1fr); }
    .dnp-service-grid { grid-template-columns: 1fr; }
    .dnp-footer-grid { grid-template-columns: repeat(2, 1fr); }
    .dnp-hero h1 { font-size: 42px; }
}

@media (max-width: 600px) {
    .dnp-container { padding-left: 16px; padding-right: 16px; }
    .dnp-header-inner { min-height: 68px; }
    .dnp-logo { font-size: 17px; }
    .dnp-cart-button, .dnp-menu-button { width: 40px; height: 40px; }
    .dnp-hero-inner { min-height: auto; padding-top: 45px; padding-bottom: 45px; }
    .dnp-hero h1 { font-size: 34px; }
    .dnp-hero p { font-size: 15px; }
    .dnp-buttons { flex-direction: column; }
    .dnp-button { width: 100%; }
    .dnp-section { padding-top: 45px; padding-bottom: 45px; }
    .dnp-heading h2 { font-size: 27px; }
    .dnp-action-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .dnp-action-card { padding: 20px 10px; }
    .dnp-action-card h3 { font-size: 15px; }
    .dnp-action-card p { font-size: 12px; }
    .dnp-category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .dnp-category { min-height: 58px; padding: 12px; font-size: 13px; }
    .dnp-promotion { padding-top: 40px; padding-bottom: 40px; }
    .dnp-promotion-box { padding: 40px 16px; border-radius: 18px; }
    .dnp-promotion-box h2 { font-size: 28px; }
    .dnp-subscribe-form { flex-direction: column; padding: 8px; border-radius: 15px; gap: 5px; }
    .dnp-subscribe-form input { width: 100%; text-align: center; padding: 14px; }
    .dnp-subscribe-form button { width: 100%; }
    .dnp-footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .dnp-whatsapp { width: 52px; height: 52px; right: 15px; bottom: 15px; }
}
