/*
Theme Name: Kiaeva Professional
Theme URI: https://kiaeva.com
Author: Kiaeva Team
Author URI: https://kiaeva.com
Description: A modern, international-standard professional skincare and learning kits eCommerce theme.
Version: 1.0.0
Text Domain: kiaeva
*/

/* CSS VARIABLES & RESET */
:root {
    --accent: #60c3e0; 
    --accent-dark: #4ba6c2;
    --accent-light: #f0fafd;
    --dark: #111111;
    --light-bg: #F9F9F9;
    --border: #E5E5E5;
    --text-main: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --spacing: 120px;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-sans); color: var(--text-main); line-height: 1.6; overflow-x: hidden; transition: background-color 0.3s; background: var(--white); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { width: 100%; display: block; object-fit: cover; }
button { cursor: pointer; font-family: var(--font-sans); border: none; background: none; }

/* TYPOGRAPHY & UTILITIES */
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--dark); line-height: 1.2; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; }
.eyebrow { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-light); margin-bottom: 15px; font-weight: 600; }
.section-spacing { padding: var(--spacing) 5%; }

.section-header { text-align: center; margin-bottom: 50px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 2.6rem; margin-bottom: 10px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; }

.text-center { text-align: center; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* GLOBAL BUTTONS */
.btn { display: inline-block; padding: 14px 30px; font-size: 0.95rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; border-radius: 2px; text-align: center; }
.btn-primary { background: var(--accent); color: var(--white); border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-secondary:hover { background: var(--accent); color: var(--white); }

.dark-mode { background: var(--dark); color: var(--white); }
.dark-mode h2, .dark-mode h3, .dark-mode .eyebrow { color: var(--white); }

/* TOP ANNOUNCEMENT BAR */
.top-bar { background: var(--accent); color: var(--white); padding: 10px 5%; font-size: 0.85rem; display: flex; justify-content: space-between; align-items: center; letter-spacing: 0.5px; font-weight: 500; transition: background 0.3s; }
.top-bar span, .top-bar a { margin: 0 8px; color: inherit; font-weight: normal; }
.top-bar a:hover { opacity: 0.8; color: var(--white); }
.top-bar-left span { border-right: 1px solid rgba(255,255,255,0.3); padding-right: 15px; }
.top-bar-left span:last-child { border: none; }

/* SCROLLING PROMO TICKER */
.promo-ticker { background: var(--dark); color: var(--white); padding: 8px 0; overflow: hidden; white-space: nowrap; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.5px; }
.ticker-content { display: inline-block; padding-left: 100%; animation: marquee 25s linear infinite; }
.promo-ticker:hover .ticker-content { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translate(0, 0); } 100% { transform: translate(-100%, 0); } }

/* MAIN HEADER */
.header { background: var(--white); position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 15px 5%; border-bottom: 1px solid var(--border); }
.logo { width: 140px; font-size: 2.2rem; font-family: var(--font-serif); font-weight: 700; letter-spacing: 1px; color: var(--dark); text-decoration: none; }

/* SEARCH BAR */
.search-container { position: relative; flex: 1; max-width: 650px; margin: 0 40px; }
.search-box-wrapper { display: flex; width: 100%; border: 2px solid var(--accent); border-radius: 4px; overflow: hidden; background: var(--white); transition: 0.3s; align-items: stretch; }
.search-box { flex: 1; padding: 12px 20px 12px 45px; border: none; background: transparent; outline: none; font-size: 0.95rem; }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-light); z-index: 2; pointer-events: none; }
.search-btn { background: var(--accent); color: var(--white); padding: 0 30px; font-size: 1rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.3s; border: none; outline: none; margin: -1px -1px -1px 0; align-self: stretch; z-index: 1; }
.search-btn:hover { background: var(--accent-dark); }

/* ICONS */
.header-icons { display: flex; gap: 25px; align-items: center; font-size: 0.95rem; font-weight: 600; color: var(--text-main); }
.header-icons a { display: flex; align-items: center; gap: 8px; position: relative; transition: 0.3s; color: var(--text-main); }
.header-icons a i { font-size: 1.4rem; color: var(--dark); transition: 0.3s; }
.header-icons a:hover, .header-icons a:hover i { color: var(--accent); }
.cart-count { position: absolute; top: -8px; right: -12px; background: var(--accent); color: var(--white); font-size: 0.7rem; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: bold; border: 2px solid var(--white); transition: background 0.3s; }

/* NAVIGATION */
.header-nav { position: relative; display: flex; align-items: center; justify-content: center; height: 50px; background: var(--white); }
.nav-links { display: flex; height: 100%; gap: 30px; }
.nav-links > li { height: 100%; display: flex; align-items: center; padding: 0 5px; }
.nav-links > li > a { font-size: 0.85rem; font-weight: 600; color: var(--text-main); text-transform: uppercase; letter-spacing: 0.5px; transition: 0.3s; }
.nav-links > li:hover > a { color: var(--accent); }

/* DRAWERS */
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1001; opacity: 0; visibility: hidden; transition: 0.3s; backdrop-filter: blur(2px); }
.overlay.active { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: -400px; width: 400px; height: 100%; background: var(--white); z-index: 1002; transition: 0.4s ease-in-out; display: flex; flex-direction: column; box-shadow: -5px 0 15px rgba(0,0,0,0.1); }
.cart-drawer.open { right: 0; }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--dark); cursor: pointer; padding: 5px; }
.mobile-menu-drawer { position: fixed; top: 0; left: -320px; width: 320px; max-width: 80vw; height: 100%; background: var(--white); z-index: 1002; transition: 0.4s ease-in-out; display: flex; flex-direction: column; box-shadow: 5px 0 15px rgba(0,0,0,0.1); }
.mobile-menu-drawer.open { left: 0; }
.drawer-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.mobile-menu-header { background: var(--accent); color: var(--white); }
.drawer-header h3 { margin: 0; font-family: var(--font-sans); font-size: 1.2rem; }
.mobile-menu-header h3 { text-transform: uppercase; letter-spacing: 1px; color: var(--white); }
.close-drawer { font-size: 1.5rem; color: var(--text-light); cursor: pointer; border: none; background: none; }
.mobile-menu-header .close-drawer { color: var(--white); }
.mobile-nav-links { padding: 0; margin: 0; list-style: none; overflow-y: auto; flex-grow: 1; }
.mobile-nav-links li { border-bottom: 1px solid var(--border); }
.mobile-nav-links li a { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; font-size: 1rem; font-weight: 500; color: var(--dark); }
.mobile-nav-links li:hover > a { background: var(--accent-light); color: var(--accent); }

/* CONTENT WRAPPERS */
.page-content { padding: 40px 0; }
.page-title { font-size: 2.8rem; margin-bottom: 30px; text-align: center; }

/* WP ALIGNMENTS */
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.wp-caption { border: 1px solid var(--border); text-align: center; background: var(--light-bg); padding: 5px; }

/* TRUST BAR & FOOTER */
.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--accent); color: var(--white); padding: 30px 5%; text-align: center; font-size: 0.95rem; font-weight: 500; transition: background 0.3s; }
.trust-item i { color: var(--white); opacity: 0.9; margin-right: 10px; font-size: 1.2rem; vertical-align: middle; transition: color 0.3s; }

.footer { background: var(--dark); color: var(--white); padding: 80px 5% 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin: 0 auto 60px; max-width: 1200px; }
.footer-col h4 { color: var(--accent); font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; margin-bottom: 25px; transition: color 0.3s; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #aaaaaa; }
.footer-col ul li a:hover { color: var(--accent); padding-left: 5px; }
.social-links { display: flex; flex-direction: column; gap: 15px; }
.social-links a { color: #aaaaaa; display: flex; align-items: center; gap: 15px; }
.social-links a i { font-size: 1.2rem; }
.social-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; color: #777; font-size: 0.9rem; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .header-main { flex-wrap: wrap; justify-content: space-between; align-items: center; }
    .logo { order: 1; margin: 0; padding: 0; text-align: left; }
    .header-icons { order: 2; gap: 15px; display: flex; align-items: center; justify-content: flex-end; margin-left: auto; }
    .mobile-menu-toggle { display: block; order: 3; margin-left: 20px; }
    .header-icons a { font-size: 0; } 
    .header-icons a i { font-size: 1.3rem; }
    .search-container { order: 4; width: 100%; max-width: 100%; margin: 15px 0 0 0; display: block; }
    .header-nav { display: none; } 
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-bar { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
    :root { --spacing: 60px; } 
    .top-bar { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .trust-bar { grid-template-columns: 1fr; gap: 15px; }
}