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

/* ── Product Card ── */
.aos-product-card {
    background: var(--aos-bg-card);
    border-radius: var(--aos-radius-lg);
    overflow: hidden;
    transition: all var(--aos-duration) var(--aos-ease);
    box-shadow: var(--aos-shadow-sm);
    min-width: 0;
}

.aos-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--aos-shadow-lg);
}

.aos-product-card__image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--aos-surface);
}

.aos-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--aos-duration-slow) var(--aos-ease);
}

.aos-product-card:hover .aos-product-card__img {
    transform: scale(1.05);
}

.aos-product-card__no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--aos-text-muted);
    font-size: var(--aos-fs-sm);
}

.aos-product-card__badges {
    position: absolute;
    top: var(--aos-space-md);
    right: var(--aos-space-md);
    display: flex;
    flex-direction: column;
    gap: var(--aos-space-xs);
    z-index: 2;
}

.aos-product-card__actions {
    position: absolute;
    left: var(--aos-space-md);
    top: 50%;
    transform: translateY(-50%) translateX(-60px);
    display: flex;
    flex-direction: column;
    gap: var(--aos-space-sm);
    opacity: 0;
    transition: all var(--aos-duration) var(--aos-ease);
    z-index: 2;
}

.aos-product-card:hover .aos-product-card__actions {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.aos-product-card__action-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--aos-radius-full);
    background: var(--aos-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--aos-shadow-md);
    transition: all var(--aos-duration) var(--aos-ease);
    color: var(--aos-text);
}

.aos-product-card__action-btn:hover {
    background: var(--aos-primary);
    color: var(--aos-text-inverse);
}

.aos-product-card__info {
    padding: var(--aos-space-lg);
}

.aos-product-card__rating {
    display: flex;
    align-items: center;
    gap: var(--aos-space-xs);
    margin-bottom: var(--aos-space-sm);
}

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

.aos-product-card__title {
    font-size: var(--aos-fs-sm);
    font-weight: var(--aos-fw-medium);
    margin-bottom: var(--aos-space-sm);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.aos-product-card__price {
    font-size: var(--aos-fs-md);
    font-weight: var(--aos-fw-bold);
    color: var(--aos-primary);
    margin-bottom: var(--aos-space-md);
}

.aos-product-card__price del {
    color: var(--aos-text-muted);
    font-size: var(--aos-fs-sm);
    font-weight: var(--aos-fw-regular);
    margin-right: var(--aos-space-sm);
}

.aos-product-card__price ins {
    text-decoration: none;
}

/* ── Products Grid ── */
.aos-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--aos-space-xl);
}

/* ── Category Card ── */
.aos-categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--aos-space-lg);
}

.aos-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--aos-space-xl) var(--aos-space-md);
    background: var(--aos-bg-card);
    border-radius: var(--aos-radius-lg);
    transition: all var(--aos-duration) var(--aos-ease);
    box-shadow: var(--aos-shadow-sm);
    text-align: center;
    min-width: 0;
}

.aos-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--aos-shadow-lg);
    color: var(--aos-text);
}

.aos-category-card__img {
    width: 80px; height: 80px;
    border-radius: var(--aos-radius-full);
    object-fit: cover;
    margin-bottom: var(--aos-space-md);
}

.aos-category-card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--aos-space-md);
}

.aos-category-card__title {
    font-size: var(--aos-fs-sm);
    font-weight: var(--aos-fw-semibold);
    margin-bottom: var(--aos-space-xs);
}

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

/* ── Routine Steps ── */
.aos-routine__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--aos-space-xl);
    position: relative;
}

.aos-routine__steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(to left, var(--aos-primary-light), var(--aos-primary), var(--aos-primary-light));
    z-index: 0;
}

.aos-routine__step {
    background: var(--aos-bg-card);
    border-radius: var(--aos-radius-lg);
    padding: var(--aos-space-xl);
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: var(--aos-shadow-sm);
    transition: all var(--aos-duration) var(--aos-ease);
}

.aos-routine__step:hover {
    transform: translateY(-4px);
    box-shadow: var(--aos-shadow-lg);
}

.aos-routine__step-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--aos-space-sm);
    margin-bottom: var(--aos-space-md);
}

.aos-routine__step-num {
    width: 48px; height: 48px;
    border-radius: var(--aos-radius-full);
    background: var(--aos-primary);
    color: var(--aos-text-inverse);
    font-weight: var(--aos-fw-bold);
    font-size: var(--aos-fs-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aos-routine__step-icon { font-size: 1.5rem; }

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

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

.aos-routine__product {
    display: flex;
    align-items: center;
    gap: var(--aos-space-md);
    background: var(--aos-surface);
    padding: var(--aos-space-md);
    border-radius: var(--aos-radius-md);
    text-align: initial;
}

.aos-routine__product-img {
    width: 60px; height: 60px;
    border-radius: var(--aos-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.aos-routine__product-info { flex: 1; }

.aos-routine__product-name {
    font-size: var(--aos-fs-sm);
    font-weight: var(--aos-fw-medium);
    margin-bottom: 2px;
}

.aos-routine__product-price {
    font-size: var(--aos-fs-sm);
    color: var(--aos-primary);
    font-weight: var(--aos-fw-bold);
}

.aos-routine__add-all {
    text-align: center;
    margin-top: var(--aos-space-xl);
}



/* ── Toast ── */
.aos-toast {
    position: fixed;
    bottom: calc(var(--aos-mobile-nav-h) + var(--aos-space-md));
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--aos-text);
    color: var(--aos-text-inverse);
    padding: var(--aos-space-md) var(--aos-space-xl);
    border-radius: var(--aos-radius-md);
    font-size: var(--aos-fs-sm);
    font-weight: var(--aos-fw-semibold);
    z-index: var(--aos-z-toast);
    box-shadow: var(--aos-shadow-xl);
    transition: transform var(--aos-duration) var(--aos-ease);
    display: flex; align-items: center; gap: var(--aos-space-sm);
}

.aos-toast.is-visible {
    transform: translateX(-50%) translateY(0);
}
