/* Amazon-Style CSS - Following Amazon.com Design */

/* ===== Reset & Base ===== */
* { box-sizing: border-box; }

/* ===== Header - Amazon Dark Style ===== */
.amazon-header {
    background: #131921;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    margin: 0 !important;
}

.amazon-header-top {
    padding: 8px 0;
    width: 100%;
    overflow: visible;
}

.amazon-header-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    width: 100%;
    overflow: visible;
}

.amazon-logo {
    flex-shrink: 0;
    padding: 8px 6px;
    border: 1px solid transparent;
    border-radius: 2px;
}

.amazon-logo:hover {
    border-color: #fff;
}

.amazon-logo img {
    height: 80px;
    width: auto;
    margin-top: 0;
}

/* Search Bar - Amazon Style */
.amazon-search {
    flex: 1;
    display: flex;
    height: 42px;
    border-radius: 6px;
    overflow: visible;
    background: #fff;
    position: relative;
    z-index: 9999;
}

.amazon-search-category {
    background: #f3f3f3;
    border: none;
    padding: 0 12px;
    font-size: 13px;
    color: #111;
    cursor: pointer;
    border-right: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px 0 0 6px;
    min-width: 70px;
    font-weight: 600;
}

.amazon-search-category:focus {
    outline: none;
}

.amazon-search-input {
    flex: 1;
    border: none;
    padding: 0 10px;
    font-size: 15px;
    outline: none;
    min-width: 0;
}

.amazon-search-btn {
    background: #febd69;
    border: none;
    padding: 0 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 6px 6px 0;
}

.amazon-search-btn:hover {
    background: #f3a847;
}

.amazon-search-btn svg {
    width: 20px;
    height: 20px;
}

/* Account & Orders - Amazon Style */
.amazon-account,
.amazon-orders {
    display: flex;
    flex-direction: column;
    padding: 8px 9px;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.amazon-account:hover,
.amazon-orders:hover {
    border-color: #fff;
}

.amazon-account-hello,
.amazon-orders-small {
    font-size: 12px;
    color: #ccc;
    line-height: 1;
}

.amazon-account-text,
.amazon-orders-text {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

/* Cart - Amazon Style */
.amazon-cart {
    display: flex;
    align-items: flex-end;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    position: relative;
}

.amazon-cart:hover {
    border-color: #fff;
    color: #fff;
}

/* Amazon-style cart badge - small orange circle at top-left of cart */
.amazon-cart-badge {
    position: absolute;
    top: -6px;
    left: 10px;
    background: #f08804;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.amazon-cart-text {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-left: 3px;
    margin-bottom: 1px;
}

/* Bottom Navigation - Amazon Dark Blue */
.amazon-nav-bottom {
    background: #232f3e;
    width: 100%;
}

.amazon-nav-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 10px;
    width: 100%;
    overflow-x: auto;
}

.amazon-nav-item {
    color: #fff;
    padding: 8px 10px;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid transparent;
}

.amazon-nav-item:hover {
    border-color: #fff;
    color: #fff;
}

.amazon-nav-item.active {
    border-color: #ffd814;
    color: #ffd814;
    font-weight: 600;
}

.amazon-nav-all {
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    color: #fff;
    font-size: 14px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.amazon-nav-all:hover {
    border-color: #fff;
}

/* Desktop/Mobile Display */
.desktop-header,
.desktop-nav {
    display: flex;
}

.amazon-header-mobile {
    display: none;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 1000px) {
    .amazon-account,
    .amazon-orders {
        display: none;
    }
}

@media (max-width: 768px) {
    .desktop-header,
    .desktop-nav {
        display: none !important;
    }

    .amazon-header-mobile {
        display: block;
        padding: 10px;
    }

    .mobile-header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .amazon-logo-mobile img {
        height: 60px;
        width: auto;
    }

    .amazon-menu-toggle {
        background: transparent;
        border: none;
        padding: 8px;
        cursor: pointer;
    }

    .mobile-header-search {
        width: 100%;
    }

    .mobile-search-bar {
        max-width: none;
        width: 100%;
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    justify-content: space-around;
    padding: 5px 0;
    border-top: 1px solid #ddd;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    .amazon-main {
        padding-bottom: 60px !important;
    }
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px;
    text-decoration: none;
    color: #131921;
    font-size: 10px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mobile-bottom-nav-item svg {
    margin-bottom: 3px;
    stroke: #131921;
    transition: stroke 0.2s ease;
}

.mobile-bottom-nav-item.active,
.mobile-bottom-nav-item:hover {
    color: #ff9900;
}

.mobile-bottom-nav-item.active svg,
.mobile-bottom-nav-item:hover svg {
    stroke: #ff9900;
}

/* Mobile Menu Sidebar */
.amazon-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.amazon-mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

.amazon-mobile-menu {
    position: fixed;
    top: 0;
    left: -365px;
    width: 365px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    z-index: 1101;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.amazon-mobile-menu.open {
    transform: translateX(365px);
}

.amazon-mobile-header {
    background: #232f3e;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.amazon-mobile-user-icon {
    background: #5c6c7e;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amazon-mobile-greeting {
    font-size: 16px;
    font-weight: 700;
    flex: 1;
    color: #fff;
    text-decoration: none;
}

.amazon-mobile-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.mobile-menu-search {
    padding: 12px 15px;
    background: #f3f3f3;
}

.amazon-mobile-nav-section {
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.amazon-mobile-nav-title {
    font-size: 16px;
    font-weight: 700;
    padding: 8px 20px;
    color: #111;
}

.amazon-mobile-nav-link {
    display: block;
    padding: 10px 20px;
    color: #111;
    text-decoration: none;
    font-size: 14px;
}

.amazon-mobile-nav-link:hover {
    background: #eee;
}

.amazon-mobile-nav-link.active {
    color: #ff9900;
    font-weight: 600;
    background: #fff8e6;
    border-left: 3px solid #ff9900;
}

/* ===== Main Content Area ===== */
.amazon-main {
    background: #eaeded;
    min-height: 60vh;
    padding: 0;
}

/* ===== Section Styles ===== */
.amazon-section {
    margin: 0;
    padding: 20px 15px;
    background: #fff;
}



.amazon-section-white {
    background: #fff;
    padding: 20px 15px;
    margin: 0;
}

.amazon-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

.amazon-section-title {
    font-size: 21px;
    font-weight: 700;
    color: #0f1111;
    margin: 0;
}

.amazon-section-link {
    color: #007185;
    text-decoration: none;
    font-size: 14px;
}

.amazon-section-link:hover {
    color: #c45500;
    text-decoration: underline;
}

/* ===== Product Grid ===== */
.amazon-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

@media (max-width: 576px) {
    .amazon-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ===== Product Card ===== */
.amazon-product-card {
    background: #fff;
    padding: 15px;
    position: relative;
    transition: box-shadow 0.2s ease;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.amazon-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #bbb;
}

.amazon-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #cc0c39;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
    border-radius: 3px;
}

.amazon-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 180px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}

.amazon-product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.amazon-product-card:hover .amazon-product-image img {
    transform: scale(1.05);
}

.amazon-product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #007185;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    margin-bottom: 6px;
    min-height: 40px;
}

.amazon-product-title:hover {
    color: #c45500;
    text-decoration: underline;
}

.amazon-product-sold {
    font-size: 12px;
    color: #565959;
    margin-bottom: 6px;
}

.amazon-product-price {
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
}

.amazon-price-symbol {
    font-size: 13px;
    vertical-align: top;
    color: #0f1111;
    font-weight: 400;
}

.amazon-price-whole {
    font-size: 21px;
    font-weight: 400;
    color: #0f1111;
    line-height: 1;
}

.amazon-price-original {
    font-size: 13px;
    color: #565959;
    text-decoration: line-through;
}

.amazon-price-savings {
    font-size: 12px;
    color: #cc0c39;
    font-weight: 500;
    margin-bottom: 10px;
}

.amazon-delivery {
    font-size: 12px;
    color: #565959;
    margin-bottom: 8px;
}

.amazon-delivery-fast {
    color: #007185;
}

.amazon-add-cart-btn {
    width: 100%;
    background: #ffd814;
    border: 1px solid #fcd200;
    border-radius: 20px;
    padding: 10px 12px;
    font-size: 13px;
    cursor: pointer;
    color: #0f1111;
    font-weight: 500;
    margin-top: 8px;
    transition: background 0.2s ease;
}

.amazon-add-cart-btn:hover {
    background: #f7ca00;
}

.amazon-add-cart-btn:disabled {
    background: #e7e9ec;
    border-color: #adb1b8;
    color: #6f7373;
    cursor: not-allowed;
}

/* ===== Footer ===== */
.amazon-footer {
    background: #232f3e;
    color: #ddd;
}

.amazon-footer-back-top {
    background: #37475a;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 13px;
    cursor: pointer;
}

.amazon-footer-back-top:hover {
    background: #485769;
}

.amazon-footer-main {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .amazon-footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .amazon-footer-main {
        grid-template-columns: 1fr;
    }
}

.amazon-footer-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.amazon-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.amazon-footer-links li {
    margin-bottom: 8px;
}

.amazon-footer-links a {
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
}

.amazon-footer-links a:hover {
    text-decoration: underline;
}

.amazon-footer-bottom {
    background: #131a22;
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #3a4553;
}

.amazon-footer-logo img {
    height: 30px;
    margin-bottom: 15px;
}

.amazon-footer-copyright {
    color: #999;
    font-size: 11px;
    margin: 0;
}

/* Mobile Cart Badge - Amazon Style */
.mobile-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f08804;
    color: #0f1111;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* ===== Amazon Carousel for Brands ===== */
.amazon-carousel {
    position: relative;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.amazon-carousel::-webkit-scrollbar {
    display: none;
}

.amazon-carousel-track {
    display: flex;
    gap: 15px;
    padding: 5px;
}

.amazon-brand-card {
    flex: 0 0 auto;
    width: 130px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.amazon-brand-card:hover {
    border-color: #f08804;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.amazon-brand-card img {
    max-width: 80px;
    max-height: 60px;
    object-fit: contain;
    margin: 0 auto 8px;
}

.amazon-brand-card p {
    font-size: 12px;
    color: #0f1111;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Amazon Container ===== */
.amazon-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== Section Padding Improvements ===== */
.amazon-section {
    margin: 0;
    padding: 20px 15px;
}

.amazon-section-white {
    background: #fff;
    padding: 20px 15px;
    margin: 0;
    max-width: none;
}

.amazon-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Product Grid Improvements ===== */
.amazon-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    max-width: 1500px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .amazon-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .amazon-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .amazon-product-card {
        padding: 10px;
    }

    .amazon-product-image {
        height: 140px;
    }

    .amazon-price-whole {
        font-size: 18px;
    }
}

/* ===== Slider Full Width ===== */
.swiper-container,
.swiper {
    width: 100%;
    max-width: 100%;
}

.swiper-slide img {
    width: 100%;
    height: auto;
}

/* ===== Load More Button ===== */
.amazon-load-more {
    display: inline-block;
    background: #ffd814;
    border: 1px solid #fcd200;
    border-radius: 8px;
    padding: 10px 30px;
    font-size: 14px;
    color: #0f1111;
    cursor: pointer;
    transition: all 0.2s;
}

.amazon-load-more:hover {
    background: #f7ca00;
}
}
