/* ═══════════════════════════════════════════════
   Abu Osama Store — Layout Styles
   ═══════════════════════════════════════════════ */

/* ── Top Bar ── */
.aos-topbar {
    background: var(--aos-text);
    color: var(--aos-text-inverse);
    height: var(--aos-topbar-h);
    font-size: var(--aos-fs-xs);
    display: flex;
    align-items: center;
}

.aos-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.aos-topbar__text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.aos-topbar__trust {
    display: flex;
    gap: var(--aos-space-md);
}

.aos-trust-badge {
    opacity: 0.85;
    font-size: var(--aos-fs-xs);
}

/* ── Header ── */
.aos-header {
    background: var(--aos-bg-card);
    position: sticky;
    top: 0;
    z-index: var(--aos-z-header);
    box-shadow: var(--aos-shadow-sm);
}

.aos-header__inner {
    display: flex;
    align-items: center;
    gap: var(--aos-space-lg);
    height: var(--aos-header-h);
}

/* Logo */
.aos-logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.1;
}

.aos-logo-text__main {
    font-family: var(--aos-ff-heading);
    font-size: var(--aos-fs-xl);
    font-weight: var(--aos-fw-extrabold);
    color: var(--aos-text);
}

.aos-logo-text__sub {
    font-size: var(--aos-fs-xs);
    color: var(--aos-primary);
    font-weight: var(--aos-fw-semibold);
    letter-spacing: 2px;
}

.aos-logo-text:hover { color: var(--aos-text); }

/* Search */
.aos-header__search { flex: 1; max-width: 520px; }

.aos-search-form {
    position: relative;
    display: flex;
}

.aos-search-form__input {
    width: 100%;
    padding: 10px 48px 10px 16px;
    border-radius: var(--aos-radius-full);
    background: var(--aos-surface);
    border: 1px solid var(--aos-border-light);
    font-size: var(--aos-fs-sm);
}

.aos-search-form__input:focus {
    border-color: var(--aos-primary);
}

.aos-search-form__btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px; height: 38px;
    border-radius: var(--aos-radius-full);
    background: var(--aos-primary);
    color: var(--aos-text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--aos-duration) var(--aos-ease);
}

.aos-search-form__btn:hover {
    background: var(--aos-primary-dark);
}

/* Actions */
.aos-header__actions {
    display: flex;
    align-items: center;
    gap: var(--aos-space-md);
}

.aos-header__action-link {
    color: var(--aos-text);
    transition: color var(--aos-duration) var(--aos-ease);
    position: relative;
    display: flex;
    align-items: center;
}

.aos-header__action-link:hover { color: var(--aos-primary); }

.aos-cart-count {
    position: absolute;
    top: -6px;
    left: -6px;
    background: var(--aos-primary);
    color: var(--aos-text-inverse);
    font-size: 10px;
    font-weight: var(--aos-fw-bold);
    width: 18px; height: 18px;
    border-radius: var(--aos-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aos-header-ai-cta {
    font-size: var(--aos-fs-xs);
    padding: 8px 16px;
}

.aos-header__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.aos-header__mobile-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--aos-text);
    border-radius: 2px;
    transition: all var(--aos-duration) var(--aos-ease);
}

/* Navigation */
.aos-nav {
    background: var(--aos-bg-card);
    border-top: 1px solid var(--aos-border-light);
}

.aos-nav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--aos-space-sm);
}

.aos-nav__list li { position: relative; }

.aos-nav__list li a {
    display: block;
    padding: var(--aos-space-md) var(--aos-space-lg);
    font-size: var(--aos-fs-sm);
    font-weight: var(--aos-fw-medium);
    color: var(--aos-text);
    transition: all var(--aos-duration) var(--aos-ease);
    position: relative;
}

.aos-nav__list li a:hover,
.aos-nav__list li.current-menu-item > a {
    color: var(--aos-primary);
}

.aos-nav__list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--aos-primary);
    transform: scaleX(0);
    transition: transform var(--aos-duration) var(--aos-ease);
}

.aos-nav__list li a:hover::after,
.aos-nav__list li.current-menu-item > a::after {
    transform: scaleX(1);
}

/* Submenu */
.aos-nav__list .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--aos-bg-card);
    border-radius: var(--aos-radius-md);
    box-shadow: var(--aos-shadow-lg);
    min-width: 200px;
    padding: var(--aos-space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--aos-duration) var(--aos-ease);
    z-index: var(--aos-z-dropdown);
}

.aos-nav__list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.aos-nav__list .sub-menu li a {
    padding: var(--aos-space-sm) var(--aos-space-lg);
}

/* ── Hero ── */
.aos-hero {
    background: linear-gradient(135deg, var(--aos-bg) 0%, var(--aos-bg-alt) 100%);
    padding: var(--aos-space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.aos-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--aos-space-3xl);
    align-items: center;
}

.aos-hero__badges {
    display: flex;
    gap: var(--aos-space-sm);
    margin-bottom: var(--aos-space-lg);
    flex-wrap: wrap;
}

.aos-hero__title {
    font-family: var(--aos-ff-heading);
    font-size: var(--aos-fs-4xl);
    font-weight: var(--aos-fw-extrabold);
    line-height: var(--aos-lh-heading);
    color: var(--aos-text);
    margin-bottom: var(--aos-space-md);
}

.aos-hero__subtitle {
    font-size: var(--aos-fs-lg);
    color: var(--aos-text-secondary);
    margin-bottom: var(--aos-space-xl);
}

.aos-hero__cta-group {
    display: flex;
    gap: var(--aos-space-md);
    flex-wrap: wrap;
    margin-bottom: var(--aos-space-md);
}

.aos-hero__microcopy {
    font-size: var(--aos-fs-xs);
    color: var(--aos-text-muted);
}

.aos-hero__visual { position: relative; }

.aos-hero__image-wrapper { position: relative; }

.aos-hero__image {
    border-radius: var(--aos-radius-xl);
    box-shadow: var(--aos-shadow-xl);
}

.aos-hero__float-card {
    position: absolute;
    background: var(--aos-bg-card);
    padding: var(--aos-space-sm) var(--aos-space-md);
    border-radius: var(--aos-radius-md);
    box-shadow: var(--aos-shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--aos-space-sm);
    font-size: var(--aos-fs-xs);
    font-weight: var(--aos-fw-semibold);
    animation: aosFloat 3s ease-in-out infinite;
}

.aos-hero__float-card--1 {
    top: 15%;
    right: -20px;
}

.aos-hero__float-card--2 {
    bottom: 15%;
    left: -20px;
    animation-delay: 1.5s;
}

.aos-hero__float-icon { font-size: 1.25rem; }

@keyframes aosFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.aos-hero__bg-decoration {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,155,109,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Footer ── */
.aos-footer {
    background: var(--aos-text);
    color: var(--aos-text-inverse);
    padding-top: var(--aos-space-3xl);
}

.aos-footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--aos-space-2xl);
    padding-bottom: var(--aos-space-2xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.aos-footer__brand { max-width: 300px; }

.aos-footer__desc {
    font-size: var(--aos-fs-sm);
    opacity: 0.75;
    margin: var(--aos-space-md) 0;
    line-height: var(--aos-lh);
}

.aos-footer__social {
    display: flex;
    gap: var(--aos-space-md);
}

.aos-social-link {
    width: 36px; height: 36px;
    border-radius: var(--aos-radius-full);
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--aos-duration) var(--aos-ease);
    color: var(--aos-text-inverse);
}

.aos-social-link:hover {
    background: var(--aos-primary);
    color: var(--aos-text-inverse);
    transform: translateY(-2px);
}

.aos-footer__title {
    font-size: var(--aos-fs-base);
    font-weight: var(--aos-fw-bold);
    margin-bottom: var(--aos-space-lg);
}

.aos-footer__links li {
    margin-bottom: var(--aos-space-sm);
}

.aos-footer__links a {
    font-size: var(--aos-fs-sm);
    opacity: 0.75;
    transition: opacity var(--aos-duration) var(--aos-ease);
}

.aos-footer__links a:hover { opacity: 1; color: var(--aos-primary); }

.aos-footer__payments {
    display: flex;
    gap: var(--aos-space-sm);
    flex-wrap: wrap;
}

.aos-payment-icon {
    border-radius: var(--aos-radius-sm);
    overflow: hidden;
}

.aos-footer__bottom {
    padding: var(--aos-space-lg) 0;
    text-align: center;
    font-size: var(--aos-fs-xs);
    opacity: 0.6;
}

.aos-logo-text--footer .aos-logo-text__main {
    color: var(--aos-text-inverse);
}

/* ── Mobile Nav ── */
.aos-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--aos-mobile-nav-h);
    background: var(--aos-bg-card);
    box-shadow: 0 -2px 20px rgba(0,0,0,0.08);
    z-index: var(--aos-z-mobile-nav);
    justify-content: space-around;
    align-items: center;
    padding: 0 var(--aos-space-sm);
}

.aos-mobile-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: var(--aos-text-muted);
    transition: color var(--aos-duration) var(--aos-ease);
    position: relative;
}

.aos-mobile-nav__item.is-active,
.aos-mobile-nav__item:hover {
    color: var(--aos-primary);
}

.aos-mobile-nav__item--ai {
    margin-top: -16px;
}

.aos-mobile-nav__ai-icon {
    width: 48px; height: 48px;
    border-radius: var(--aos-radius-full);
    background: linear-gradient(135deg, var(--aos-primary), var(--aos-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aos-text-inverse);
    box-shadow: 0 4px 15px rgba(200,155,109,0.3);
}

.aos-mobile-cart-count {
    position: absolute;
    top: -4px;
    left: calc(50% + 6px);
    font-size: 9px;
}

/* ── WhatsApp Float ── */
.aos-whatsapp-float {
    position: fixed;
    bottom: calc(var(--aos-mobile-nav-h) + var(--aos-space-lg));
    left: var(--aos-space-lg);
    width: 56px; height: 56px;
    border-radius: var(--aos-radius-full);
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
    transition: all var(--aos-duration) var(--aos-ease);
    z-index: var(--aos-z-dropdown);
    color: #fff;
}

.aos-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37,211,102,0.5);
    color: #fff;
}

/* ── Scroll to Top ── */
.aos-scroll-top {
    position: fixed;
    bottom: calc(var(--aos-mobile-nav-h, 0px) + var(--aos-space-2xl) + 60px);
    right: var(--aos-space-lg);
    width: 44px; height: 44px;
    border-radius: var(--aos-radius-full);
    background: var(--aos-primary);
    color: var(--aos-text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--aos-shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--aos-duration) var(--aos-ease);
    z-index: var(--aos-z-dropdown);
    cursor: pointer;
}

.aos-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.aos-scroll-top:hover {
    background: var(--aos-primary-dark);
    transform: translateY(-3px);
}

@media (min-width: 769px) {
    .aos-scroll-top {
        bottom: var(--aos-space-2xl);
    }
}

/* ── Front Page specific grids ── */
.aos-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--aos-space-lg);
    text-align: center;
}

.aos-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--aos-space-lg);
}

.aos-flash-sale__header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

/* ── Components (Review & Trust Cards) ── */
.aos-review-card {
    background: var(--aos-bg-card);
    padding: var(--aos-space-xl);
    border-radius: var(--aos-radius-lg);
    box-shadow: var(--aos-shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
}

.aos-review-card .aos-stars {
    color: #FFB800;
    font-size: 1.2rem;
    margin-bottom: var(--aos-space-sm);
}

.aos-review-card p {
    font-size: 0.95rem;
    color: var(--aos-text);
    line-height: 1.6;
    margin-bottom: var(--aos-space-xl);
    flex: 1;
}

.aos-review-card__author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.aos-review-card__avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--aos-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aos-primary-dark);
    font-weight: bold;
    flex-shrink: 0;
}

.aos-review-card__author h4 {
    font-size: 0.9rem;
    font-weight: bold;
    margin: 0;
}

.aos-review-card__author span {
    font-size: 0.75rem;
    color: var(--aos-success);
    display: flex;
    align-items: center;
    gap: 4px;
}

.aos-trust-item {
    padding: var(--aos-space-xl);
    background: var(--aos-bg-card);
    border-radius: var(--aos-radius-lg);
    box-shadow: var(--aos-shadow-sm);
    height: 100%;
}

.aos-trust-icon {
    font-size: 3rem;
    margin-bottom: var(--aos-space-md);
}

.aos-trust-item h3 {
    font-size: var(--aos-fs-md);
    margin-bottom: var(--aos-space-xs);
}

.aos-trust-item p {
    font-size: var(--aos-fs-sm);
    color: var(--aos-text-muted);
}
