/* ============================================================
   AA Elementor Widgets — Main Stylesheet
   ============================================================ */

/* ── NAV MENU ─────────────────────────────────────────────── */
.aa-nav-container {
    position: relative;
    width: 100%;
}

.aa-nav-menu-wrap {
    display: flex;
    align-items: center;
    width: 100%;
}

.aa-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
}

.aa-nav-menu > li {
    position: relative;
    list-style: none;
}

.aa-nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.25s ease, background 0.25s ease;
}

/* Arrow */
.aa-arrow {
    font-size: 9px;
    transition: transform 0.25s ease;
    display: inline-block;
}

.aa-nav-menu > li:hover .aa-arrow {
    transform: rotate(180deg);
}

/* ── DROPDOWN ─────────────────────────────────────────────── */
.aa-sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    margin: 0;
    padding: 12px 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-top: 3px solid #E20E0E;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    min-width: 240px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

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

.aa-sub-menu li {
    list-style: none;
}

.aa-sub-menu li a {
    display: block;
    padding: 9px 24px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.aa-sub-menu li:hover > a {
    padding-left: 28px;
    background: #f7f7f7;
    border-left-color: #E20E0E;
}

/* Nested sub-menu */
.aa-sub-menu .aa-sub-menu {
    top: 0;
    left: 100%;
}

/* ── HAMBURGER ────────────────────────────────────────────── */
.aa-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.aa-hamburger:hover {
    background: #eee;
}

.aa-hamburger svg {
    fill: #E20E0E;
}

/* ── MOBILE MENU ──────────────────────────────────────────── */
.aa-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 2px solid #E20E0E;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 9999;
}

.aa-mobile-menu.open {
    display: block;
}

.aa-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aa-mobile-nav li a {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: color 0.2s, background 0.2s;
}

.aa-mobile-nav li a:hover {
    color: #E20E0E;
    background: #f7f7f7;
}

.aa-mobile-nav .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fafafa;
    display: none;
}

.aa-mobile-nav .sub-menu.open {
    display: block;
}

.aa-mobile-nav .sub-menu li a {
    padding: 11px 36px;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #777;
}

.aa-mobile-nav .sub-menu li a:hover {
    color: #E20E0E;
    background: #f0f0f0;
}

/* ── SEARCH ───────────────────────────────────────────────── */
.aa-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 0 16px 0 20px;
    overflow: hidden;
    width: 100%;
}

.aa-search-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 10px;
}

.aa-search-icon svg {
    width: 18px;
    height: 18px;
    fill: #E20E0E;
}

.aa-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #333;
    padding: 14px 8px;
    width: 100%;
    box-shadow: none !important;
}

.aa-search-input::placeholder {
    color: #aaa;
}

.aa-search-submit {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
}

/* ── CART ICON ────────────────────────────────────────────── */
.aa-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.aa-cart-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.aa-cart-icon-wrap svg {
    width: 26px;
    height: 26px;
    fill: #e42e2d;
    transition: fill 0.25s;
}

.aa-cart-link:hover .aa-cart-icon-wrap svg {
    fill: #175CAF;
}

.aa-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #E20E0E;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aa-cart-subtotal {
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

/* ── MINI CART DRAWER ─────────────────────────────────────── */
.aa-mini-cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
}

.aa-mini-cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.aa-mini-cart-drawer.open {
    right: 0;
}

.aa-mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.aa-mini-cart-header h3 {
    margin: 0;
    font-size: 18px;
}

.aa-mini-cart-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    line-height: 1;
    padding: 0;
}

.aa-mini-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

@media (max-width: 480px) {
    .aa-mini-cart-drawer {
        width: 100%;
        right: -100%;
    }
}

/* ── PRODUCTS GRID ────────────────────────────────────────── */
.aa-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.aa-product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.aa-product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.aa-card-img-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.aa-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.aa-product-card:hover .aa-card-img {
    transform: scale(1.04);
}

.aa-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #E20E0E;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
}

.aa-card-info {
    padding: 14px 16px 18px;
}

.aa-card-product-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.4;
}

.aa-card-product-title a {
    color: #333;
    text-decoration: none;
}

.aa-card-product-title a:hover {
    color: #E20E0E;
}

.aa-card-rating {
    margin-bottom: 6px;
}

.aa-card-rating .aa-star { font-size: 13px; color: #ddd; }
.aa-card-rating .aa-star.filled { color: #f5a623; }

.aa-card-price {
    font-size: 15px;
    font-weight: 700;
    color: #E20E0E;
    margin-bottom: 10px;
}

.aa-card-price del { color: #999; font-weight: 400; font-size: 13px; }

.aa-card-atc-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 9px 16px;
    background: #E20E0E;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.aa-card-atc-btn:hover {
    background: #c20c0c;
    color: #fff;
}

@media (max-width: 1024px) {
    .aa-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .aa-products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .aa-card-img { height: 160px; }
}

/* ── PRODUCT IMAGES GALLERY ───────────────────────────────── */
.aa-product-images { display: flex; flex-direction: column; gap: 12px; }
.aa-product-main-image img { width: 100%; border-radius: 8px; }
.aa-product-gallery {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.aa-gallery-thumb {
    width: 70px;
    height: 70px;
    border: 2px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}
.aa-gallery-thumb.active,
.aa-gallery-thumb:hover {
    border-color: #E20E0E;
}
.aa-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── ADD TO CART ──────────────────────────────────────────── */
.aa-add-to-cart .cart { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.aa-qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}
.aa-qty-minus, .aa-qty-plus {
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 44px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}
.aa-qty-minus:hover, .aa-qty-plus:hover { background: #eee; }
.aa-qty-input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    height: 44px;
    font-size: 15px;
    outline: none;
}
.aa-atc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #E20E0E;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}
.aa-atc-btn:hover { background: #c20c0c; color: #fff; }

/* ── PRODUCT META ─────────────────────────────────────────── */
.aa-product-meta { display: flex; flex-direction: column; gap: 6px; }
.aa-meta-row { font-size: 14px; }
.aa-meta-label { font-weight: 600; color: #555; margin-right: 6px; }
.aa-meta-value a { color: #E20E0E; text-decoration: none; }
.aa-meta-value a:hover { text-decoration: underline; }

/* ── STOCK STATUS ─────────────────────────────────────────── */
.aa-stock-status { font-size: 14px; font-weight: 600; }
.aa-stock-status.instock { color: #2e7d32; }
.aa-stock-status.outofstock { color: #c62828; }

/* ── PRODUCT RATING ───────────────────────────────────────── */
.aa-product-rating { display: flex; align-items: center; gap: 8px; }
.aa-stars { display: flex; gap: 2px; }
.aa-star { font-size: 18px; color: #ddd; }
.aa-star.filled { color: #f5a623; }
.aa-rating-count { font-size: 13px; color: #777; }

/* ── POST META ────────────────────────────────────────────── */
.aa-post-meta { font-size: 14px; color: #666; }
.aa-meta-sep { margin: 0 4px; }

/* ── BREADCRUMBS ──────────────────────────────────────────── */
.aa-breadcrumbs { font-size: 13px; color: #777; }
.aa-breadcrumbs a { color: #E20E0E; text-decoration: none; }
.aa-breadcrumbs a:hover { text-decoration: underline; }
.aa-bc-sep { margin: 0 6px; }

/* ── ARCHIVE POSTS GRID ───────────────────────────────────── */
.aa-archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.aa-archive-post-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}
.aa-card-image { display: block; }
.aa-card-image img { width: 100%; height: 200px; object-fit: cover; display: block; }
.aa-card-body { padding: 16px; }
.aa-card-date { font-size: 12px; color: #999; display: block; margin-bottom: 6px; }
.aa-card-title { font-size: 16px; margin: 0 0 8px; }
.aa-card-title a { color: #333; text-decoration: none; }
.aa-card-title a:hover { color: #E20E0E; }
.aa-card-excerpt { font-size: 14px; color: #666; margin: 0 0 12px; }
.aa-card-readmore {
    font-size: 13px;
    font-weight: 600;
    color: #E20E0E;
    text-decoration: none;
}
.aa-card-readmore:hover { text-decoration: underline; }
.aa-archive-pagination { margin-top: 30px; text-align: center; }
.aa-archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 3px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}
.aa-archive-pagination .page-numbers.current,
.aa-archive-pagination .page-numbers:hover {
    background: #E20E0E;
    color: #fff;
    border-color: #E20E0E;
}

@media (max-width: 768px) {
    .aa-archive-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .aa-archive-posts-grid { grid-template-columns: 1fr; }
}
