/* ==========================================================================
   SARAH AQUASOFT - MODERN WORDPRESS-INSPIRED E-COMMERCE DESIGN
   Colors, Typography & Layout inspired by Astra/Elementor theme
   ========================================================================== */

:root {
    --primary: #0B6CB1;
    --primary-dark: #084C7D;
    --primary-light: #EBF5FB;
    --accent: #00A3E0;
    --accent-hover: #0089bd;
    --navy: #0F172A;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;
    --card-shadow: 0 4px 16px rgba(11, 108, 177, 0.08);
    --hover-shadow: 0 12px 28px rgba(11, 108, 177, 0.16);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   TOP UTILITY BAR
   -------------------------------------------------------------------------- */
.sa-topbar {
    background-color: var(--navy);
    color: #CBD5E1;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sa-topbar a {
    color: #E2E8F0;
}
.sa-topbar a:hover {
    color: var(--accent);
}
.sa-topbar .item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 20px;
}

/* --------------------------------------------------------------------------
   MAIN HEADER
   -------------------------------------------------------------------------- */
.sa-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1000;
}
.sa-header-main {
    padding: 16px 0;
}
.sa-logo {
    max-height: 52px;
    width: auto;
    object-fit: contain;
}
.sa-search-box {
    display: flex;
    align-items: center;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(11, 108, 177, 0.08);
}
.sa-search-box input {
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    flex-grow: 1;
    outline: none;
}
.sa-search-box button {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 22px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.sa-search-box button:hover {
    background-color: var(--primary-dark);
}

/* Action Icons */
.sa-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}
.sa-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.sa-action-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}
.sa-badge {
    position: absolute;
    top: -4px;
    right: 2px;
    background-color: #EF4444;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 999px;
    padding: 2px 6px;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   NAVIGATION BAR
   -------------------------------------------------------------------------- */
.sa-nav-bar {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.sa-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}
.sa-nav-item {
    position: relative;
}
.sa-nav-link {
    display: block;
    padding: 14px 18px;
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2px;
    transition: var(--transition);
}
.sa-nav-link:hover, .sa-nav-item:hover > .sa-nav-link {
    background-color: var(--primary-dark);
    color: #FFFFFF !important;
}

/* Dropdown Menu */
.sa-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    display: none;
    z-index: 1050;
    padding: 8px 0;
}
.sa-nav-item:hover .sa-dropdown {
    display: block;
    animation: fadeInDown 0.2s ease-in-out;
}
.sa-dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}
.sa-dropdown a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    padding-left: 24px;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   HERO BANNER
   -------------------------------------------------------------------------- */
.sa-hero {
    position: relative;
    background: url('/static/front/img/home-new-bg-free-img.jpg') center center/cover no-repeat;
    padding: 90px 0 110px;
    color: #fff;
    overflow: hidden;
}
.sa-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(8, 76, 125, 0.88) 0%, rgba(15, 23, 42, 0.75) 100%);
    z-index: 1;
}
.sa-hero .container {
    position: relative;
    z-index: 2;
}
.sa-hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.sa-hero-sub {
    font-size: 1.2rem;
    color: #E2E8F0;
    margin-bottom: 32px;
    max-width: 650px;
}
.sa-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.sa-btn-primary {
    background-color: var(--accent);
    color: #fff;
    padding: 13px 28px;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    box-shadow: 0 4px 14px rgba(0, 163, 224, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.sa-btn-primary:hover {
    background-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 163, 224, 0.5);
}
.sa-btn-outline {
    background-color: transparent;
    color: #fff;
    padding: 13px 28px;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: 2px solid #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.sa-btn-outline:hover {
    background-color: #fff;
    color: var(--navy);
    transform: translateY(-2px);
}

/* Feature Strips */
.sa-features-strip {
    background: #fff;
    margin-top: -45px;
    position: relative;
    z-index: 10;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 24px 30px;
}
.sa-feature-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}
.sa-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.sa-feature-box h5 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}
.sa-feature-box p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   CATEGORIES GRID
   -------------------------------------------------------------------------- */
.sa-section {
    padding: 70px 0;
}
.sa-section-header {
    text-align: center;
    margin-bottom: 45px;
}
.sa-section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    margin-bottom: 10px;
}
.sa-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}
.sa-section-sub {
    color: var(--text-muted);
    font-size: 15px;
}

/* Category Cards */
.sa-category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 260px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: block;
}
.sa-category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.sa-category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #fff;
    transition: var(--transition);
}
.sa-category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
}
.sa-category-card:hover img {
    transform: scale(1.08);
}
.sa-category-card:hover .sa-category-overlay {
    background: linear-gradient(to top, rgba(11, 108, 177, 0.9) 0%, rgba(11, 108, 177, 0.4) 60%, transparent 100%);
}
.sa-category-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
}
.sa-category-action {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.sa-category-card:hover .sa-category-action {
    color: #fff;
}

/* --------------------------------------------------------------------------
   PRODUCT CARDS (IMPROVED WORDPRESS STYLE)
   -------------------------------------------------------------------------- */
.sa-product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}
.sa-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
    border-color: var(--accent);
}
.sa-product-img-wrap {
    position: relative;
    padding-top: 85%;
    overflow: hidden;
    background-color: #FAFAFA;
}
.sa-product-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.4s ease;
}
.sa-product-card:hover .sa-product-img-wrap img {
    transform: scale(1.06);
}

.sa-discount-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #EF4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    z-index: 2;
}
.sa-badge-bestseller {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.sa-product-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.sa-product-cat {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.sa-product-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}
.sa-product-name a {
    color: inherit;
}
.sa-product-name a:hover {
    color: var(--primary);
}

.sa-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #F59E0B;
    font-size: 13px;
    margin-bottom: 12px;
}
.sa-product-rating span {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: 4px;
}

.sa-product-price-wrap {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}
.sa-current-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}
.sa-old-price {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.sa-product-actions {
    display: flex;
    gap: 8px;
}
.sa-btn-cart {
    flex-grow: 1;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
    cursor: pointer;
}
.sa-btn-cart:hover {
    background-color: var(--primary-dark);
    color: #fff;
}
.sa-btn-wish {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.sa-btn-wish:hover {
    color: #EF4444;
    border-color: #EF4444;
    background: #FEF2F2;
}

/* --------------------------------------------------------------------------
   PROMO / AMC BANNER
   -------------------------------------------------------------------------- */
.sa-amc-banner {
    background: url('/static/front/img/banner-03.jpg') center center/cover no-repeat;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 60px 40px;
    color: #fff;
    box-shadow: var(--card-shadow);
}
.sa-amc-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 76, 125, 0.95) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 1;
}
.sa-amc-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}
.sa-amc-badge {
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   POPULAR SEO LINKS HUB
   -------------------------------------------------------------------------- */
.sa-seo-hub {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
}
.sa-seo-tag {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 999px;
    margin: 4px 3px;
    transition: var(--transition);
}
.sa-seo-tag:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.sa-footer {
    background-color: var(--navy);
    color: #CBD5E1;
    padding: 70px 0 0;
    font-size: 14px;
}
.sa-footer-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}
.sa-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--accent);
}
.sa-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sa-footer-links li {
    margin-bottom: 10px;
}
.sa-footer-links a {
    color: #94A3B8;
    transition: var(--transition);
}
.sa-footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}
.sa-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #94A3B8;
}
.sa-footer-contact i {
    color: var(--accent);
    font-size: 16px;
    margin-top: 3px;
}
.sa-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    margin-top: 50px;
    font-size: 13px;
    color: #64748B;
}

/* Toast Notification for AJAX cart/wishlist */
#sa-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--navy);
    color: #fff;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 99999;
    display: none;
    align-items: center;
    gap: 12px;
    border-left: 4px solid var(--accent);
    animation: slideInRight 0.3s ease-in-out;
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive Utilities */
@media (max-width: 991px) {
    .sa-hero-title { font-size: 2.1rem; }
    .sa-features-strip { margin-top: 20px; }
    .sa-nav { display: none; }
    .sa-mobile-nav-toggle { display: block; }
}
