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

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--aos-ff);
    font-size: var(--aos-fs-base);
    font-weight: var(--aos-fw-regular);
    line-height: var(--aos-lh);
    color: var(--aos-text);
    background-color: var(--aos-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--aos-duration) var(--aos-ease);
}

a:hover { color: var(--aos-primary); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
    font-size: inherit;
}

ul, ol { list-style: none; }

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: 1px solid var(--aos-border);
    border-radius: var(--aos-radius-md);
    padding: var(--aos-space-sm) var(--aos-space-md);
    background-color: var(--aos-bg-card);
    color: var(--aos-text);
    transition: border-color var(--aos-duration) var(--aos-ease);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--aos-primary);
    box-shadow: 0 0 0 3px var(--aos-primary-bg);
}

/* ── Container ── */
.aos-container {
    width: 100%;
    max-width: var(--aos-container);
    margin: 0 auto;
    padding: 0 var(--aos-space-lg);
}

/* ── Screen Reader ── */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;
}

/* ── Skip Link ── */
.aos-skip-link:focus {
    position: fixed;
    top: var(--aos-space-md);
    right: var(--aos-space-md);
    background: var(--aos-primary);
    color: var(--aos-text-inverse);
    padding: var(--aos-space-sm) var(--aos-space-lg);
    z-index: 9999;
    clip: auto;
    width: auto; height: auto;
    border-radius: var(--aos-radius-md);
}

/* ── Section ── */
.aos-section {
    padding: var(--aos-space-3xl) 0;
}

.aos-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--aos-space-xl);
    gap: var(--aos-space-md);
}

.aos-section__header--center {
    flex-direction: column;
    text-align: center;
}

.aos-section__title {
    font-family: var(--aos-ff-heading);
    font-size: var(--aos-fs-2xl);
    font-weight: var(--aos-fw-bold);
    color: var(--aos-text);
    line-height: var(--aos-lh-heading);
}

.aos-section__subtitle {
    font-size: var(--aos-fs-md);
    color: var(--aos-text-secondary);
    margin-top: var(--aos-space-sm);
}

.aos-section__link {
    font-size: var(--aos-fs-sm);
    font-weight: var(--aos-fw-semibold);
    color: var(--aos-primary);
    white-space: nowrap;
    transition: opacity var(--aos-duration) var(--aos-ease);
}

.aos-section__link:hover { opacity: 0.8; color: var(--aos-primary-dark); }

/* ── Buttons ── */
.aos-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--aos-space-sm);
    padding: var(--aos-space-sm) var(--aos-space-lg);
    font-family: var(--aos-ff);
    font-weight: var(--aos-fw-semibold);
    font-size: var(--aos-fs-sm);
    border-radius: var(--aos-radius-md);
    transition: all var(--aos-duration) var(--aos-ease);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.aos-btn--primary {
    background: var(--aos-primary);
    color: var(--aos-text-inverse);
}
.aos-btn--primary:hover {
    background: var(--aos-primary-dark);
    color: var(--aos-text-inverse);
    transform: translateY(-1px);
    box-shadow: var(--aos-shadow-md);
}

.aos-btn--outline {
    background: transparent;
    border-color: var(--aos-primary);
    color: var(--aos-primary);
}
.aos-btn--outline:hover {
    background: var(--aos-primary);
    color: var(--aos-text-inverse);
}

.aos-btn--sm { padding: 6px 14px; font-size: var(--aos-fs-xs); }
.aos-btn--lg { padding: 14px 32px; font-size: var(--aos-fs-base); }
.aos-btn--full { width: 100%; }

.aos-btn--glow {
    box-shadow: var(--aos-shadow-glow);
}
.aos-btn--glow:hover {
    box-shadow: 0 0 40px rgba(200,155,109,0.4);
}

.aos-btn--ai {
    background: linear-gradient(135deg, #C89B6D, #DDB88A);
    color: var(--aos-text-inverse);
    font-weight: var(--aos-fw-bold);
}
.aos-btn--ai:hover {
    transform: translateY(-1px);
    box-shadow: var(--aos-shadow-glow);
    color: var(--aos-text-inverse);
}

/* ── Badges ── */
.aos-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: var(--aos-fs-xs);
    font-weight: var(--aos-fw-semibold);
    border-radius: var(--aos-radius-full);
}

.aos-badge--sale {
    background: var(--aos-sale);
    color: var(--aos-text-inverse);
}
.aos-badge--featured {
    background: var(--aos-featured);
    color: var(--aos-text-inverse);
}
.aos-badge--trust {
    background: rgba(76,175,80,0.1);
    color: var(--aos-success);
}
.aos-badge--safe {
    background: rgba(91,155,213,0.1);
    color: var(--aos-info);
}
.aos-badge--ai {
    background: linear-gradient(135deg, rgba(200,155,109,0.15), rgba(200,155,109,0.05));
    color: var(--aos-primary);
}

/* ── Stars ── */
.aos-stars {
    display: inline-flex;
    gap: 1px;
}

/* ── Universal Grid Mobile Fix ── */
/* Prevents CSS Grid items from blowing out the viewport due to intrinsic size (e.g. fixed images) */
.aos-hero__grid > *,
.aos-products-grid > *,
.aos-categories__grid > *,
.aos-trust-grid > *,
.aos-testimonials-grid > *,
.woocommerce div.product > * {
    min-width: 0;
}
