.aed-store-page {
    background: #f7f7f7;
    padding: 40px 0;
}

.aed-store-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.aed-store-hero {
    background: #ffffff;
    padding: 50px 30px;
    border-radius: 12px;
}

.aed-store-label {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.aed-store-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.aed-store-hero p {
    max-width: 700px;
    font-size: 18px;
}

.aed-country-switcher {
    margin-top: 25px;
}

.aed-country-switcher a {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid #222;
    margin-right: 10px;
    text-decoration: none;
    color: #222;
    border-radius: 6px;
}

.aed-country-switcher a.active {
    background: #222;
    color: #fff;
}

.aed-products-section {
    padding: 50px 0 70px;
}

.aed-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.aed-section-heading h2 {
    margin: 0;
    font-size: 34px;
}

.aed-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.aed-product-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 12px;
}

.aed-product-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f3f3;
}

.aed-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.aed-product-content {
    padding: 20px;
}

.aed-product-content h3 {
    min-height: 52px;
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.45;
}

.aed-product-price {
    margin-bottom: 18px;
    font-size: 19px;
    font-weight: 700;
}

.aed-product-content label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
}

.aed-product-quantity {
    width: 100%;
    margin-bottom: 12px;
    padding: 11px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
}

.aed-order-button {
    width: 100%;
    padding: 12px 16px;
    cursor: pointer;
    color: #ffffff;
    background: #222222;
    border: 0;
    border-radius: 6px;
    font-weight: 700;
}

.aed-order-button:hover {
    background: #f7931e;
}

.aed-empty-state {
    padding: 40px;
    text-align: center;
    background: #ffffff;
    border-radius: 12px;
}

@media (max-width: 1000px) {
    .aed-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .aed-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aed-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .aed-product-grid {
        grid-template-columns: 1fr;
    }
}

/* Prevent Sinrato sticky/overlay header from covering direct-store pages */
.aed-country-store-page .sticky-header,
.aed-country-store-page .header-sticky,
.aed-country-store-page .sticky-menu,
.aed-country-store-page .header-mobile,
.aed-country-store-page .mobile-menu-container,
.aed-country-store-page .mobile-menu-wrapper,
.aed-country-store-page .offcanvas-menu,
.aed-country-store-page .offcanvas-menu-wrapper,
.aed-country-store-page .menu-overlay,
.aed-country-store-page .nav-container.open,
.aed-country-store-page .main-menu.open {
    display: none !important;
}

/* Keep normal desktop header visible */
.aed-country-store-page .site-header,
.aed-country-store-page .header-container,
.aed-country-store-page .main-header {
    position: relative !important;
    top: auto !important;
    transform: none !important;
}

/* Ensure plugin content is above any residual theme layer */
.aed-country-store-page .aed-store-page {
    position: relative;
    z-index: 20;
}

.aed-order-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.aed-order-modal.is-open {
    display: flex;
}

.aed-order-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.aed-order-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 38px 48px;
    background: #ffffff;
    border-radius: 14px;
}

.aed-order-modal-dialog h2 {
    margin: 0 45px 14px 0;
    font-size: 30px;
    line-height: 1.2;
}

#aed-selected-product-name {
    margin: 0 0 24px;
    padding: 14px 16px;
    color: #555;
    background: #f7f7f7;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
}

.aed-order-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 2;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    font-size: 34px;
    line-height: 1;
}

.aed-form-field {
    margin-bottom: 22px;
}

.aed-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.aed-form-field input,
.aed-form-field select {
    width: 100%;
    min-height: 58px;
    padding: 13px 16px;
    border: 1px solid #d5d5d5;
    border-radius: 7px;
}


.aed-submit-order-button {
    width: 100%;
    min-height: 58px;
    padding: 14px 18px;
    cursor: pointer;
    color: #fff;
    background: #222;
    border: 0;
    border-radius: 7px;
    font-weight: 700;
}

.aed-submit-order-button:hover {
    background: #f7931e;
}

.aed-order-message {
    margin-top: 15px;
    font-weight: 600;
}

body.aed-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .aed-order-modal {
        align-items: flex-end;
        padding: 0;
    }

    .aed-order-modal-dialog {
        max-height: 92vh;
        padding: 30px 22px;
        border-radius: 16px 16px 0 0;
    }

    .aed-order-modal-dialog h2 {
        font-size: 25px;
    }
}