
/* Reset & Variables */
:root {
    --amz-dark: #131921;
    --amz-nav: #232f3e;
    --amz-yellow: #ffd814;
    --amz-orange: #ffa41c;
    --amz-bg: #eaeded;
    --amz-link: #007185;
    --amz-link-hover: #c40000;
    --amz-price: #B12704;
    --amz-text: #0f1111;
    --amz-light: #565959;
    --border: #cccccc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Open Sans', Arial, sans-serif; background-color: var(--amz-bg); color: var(--amz-text); line-height: 1.4; }
a { text-decoration: none; color: var(--amz-link); }
a:hover { color: var(--amz-link-hover); text-decoration: underline; }
ul { list-style: none; }
.container { max-width: 1500px; margin: 0 auto; padding: 0 15px; }

/* Utilities */
.mt-5 { margin-top: 5px; } .mt-10 { margin-top: 10px; } .mt-15 { margin-top: 15px; } .mt-20 { margin-top: 20px; } .mt-30 { margin-top: 30px; } .mt-40 { margin-top: 40px; } .mt-50 { margin-top: 50px; }
.mb-10 { margin-bottom: 10px; } .mb-15 { margin-bottom: 15px; } .mb-20 { margin-bottom: 20px; } .pb-5 { padding-bottom: 5px; }
.text-center { text-align: center; } .text-right { text-align: right; } .w-100 { width: 100%; }
.text-sm { font-size: 0.85rem; } .text-xs { font-size: 0.7rem; }
.gold { color: #ffa41c; } .text-green { color: #007600; } .text-blue { color: #00a8e1; } .text-light { color: var(--amz-light); }
.fw-bold { font-weight: 700; }

/* Buttons */
.btn-amz-yellow { background: #ffd814; border: 1px solid #FCD200; border-color: #fcd200 #d6b200 #d6b200; border-radius: 8px; padding: 8px 15px; color: #0f1111; cursor: pointer; font-size: 0.9rem; box-shadow: 0 2px 5px rgba(213,217,217,.5); transition: background 0.2s; }
.btn-amz-yellow:hover { background: #f7ca00; }
.btn-amz-orange { background: #ffa41c; border: 1px solid #ff8f00; border-color: #ff8f00 #ea8200 #ea8200; border-radius: 8px; padding: 8px 15px; color: #0f1111; cursor: pointer; font-size: 0.9rem; box-shadow: 0 2px 5px rgba(213,217,217,.5); transition: background 0.2s; }
.btn-amz-orange:hover { background: #fa8900; }

/* HEADER */
.amz-header { background: var(--amz-dark); color: #fff; }
.amz-header a { text-decoration: none; color: #fff; }
.amz-header-top { padding: 10px 0; }
.h-top-flex { display: flex; align-items: center; gap: 15px; }
.header-hover { border: 1px solid transparent; padding: 8px; border-radius: 2px; cursor: pointer; display: flex; flex-direction: column; justify-content: center; }
.header-hover:hover { border-color: #fff; }
.line-1 { font-size: 0.75rem; color: #ccc; }
.line-2 { font-size: 0.9rem; font-weight: 700; color: #fff; }

.amz-logo { font-size: 1.5rem; font-weight: 700; padding: 5px 10px; border: 1px solid transparent; }
.amz-logo:hover { border-color: #fff; border-radius: 2px; }
.amz-logo span { color: #f0a14b; }

.amz-location { flex-direction: row !important; align-items: center; gap: 5px; }
.amz-location i { align-self: flex-end; margin-bottom: 2px; font-size: 1.1rem; }

.amz-search { flex: 1; display: flex; height: 40px; border-radius: 4px; overflow: hidden; }
.search-select { background: #f3f3f3; border: none; border-right: 1px solid #cdcdcd; padding: 0 10px; font-size: 0.85rem; color: #555; outline: none; cursor: pointer; }
.amz-search input { flex: 1; border: none; padding: 0 15px; font-size: 1rem; outline: none; }
.amz-search input:focus { box-shadow: inset 0 0 0 2px #f0a14b; }
.search-btn { background: #febd69; border: none; width: 45px; cursor: pointer; color: #333; font-size: 1.2rem; transition: background 0.2s; }
.search-btn:hover { background: #f3a847; }

.amz-lang { flex-direction: row !important; align-items: flex-end; gap: 5px; font-weight: 700; font-size: 0.9rem; }
.amz-cart { flex-direction: row !important; align-items: flex-end; }
.cart-icon-wrapper { position: relative; font-size: 1.8rem; margin-right: 5px; }
.cart-count { position: absolute; top: -5px; left: 50%; transform: translateX(-50%); font-size: 1rem; font-weight: 700; color: #f08804; }

.amz-header-bottom { background: var(--amz-nav); padding: 5px 0; font-size: 0.85rem; }
.h-bottom-flex { display: flex; gap: 5px; align-items: center; }
.menu-all { font-weight: 700; flex-direction: row !important; align-items: center; gap: 5px; }

/* HERO (Home) */
.amz-hero { position: relative; background: #00a8e1; /* fallback */ }
.hero-fade-bottom { position: absolute; bottom: 0; left: 0; width: 100%; height: 250px; background: linear-gradient(to bottom, rgba(234,237,237,0) 0%, rgba(234,237,237,1) 100%); z-index: 1; pointer-events: none; }
.hero-content { position: relative; z-index: 2; padding-top: 250px; /* Push content down */ padding-bottom: 20px; }

/* Home Cards */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card { background: #fff; padding: 20px; z-index: 2; display: flex; flex-direction: column; }
.cat-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 15px; color: var(--amz-text); }
.shop-link { font-size: 0.85rem; font-weight: 500; margin-top: auto; padding-top: 15px; display: inline-block; }
.single-img img { width: 100%; object-fit: cover; }
.quad-images { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quad-images a { color: var(--amz-text); text-decoration: none; font-size: 0.75rem; }
.quad-images img { width: 100%; object-fit: cover; margin-bottom: 5px; }

.signIn-card { background: #fff; }

/* Horizontal Scroll Box */
.product-scroll-box { background: #fff; padding: 20px; margin-bottom: 20px; }
.box-header { display: flex; align-items: flex-end; gap: 15px; margin-bottom: 15px; }
.box-header h2 { font-size: 1.3rem; font-weight: 700; margin: 0; }
.box-header a { font-size: 0.85rem; }
.scroll-wrapper { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 10px; }
.scroll-item img { width: 160px; height: 160px; object-fit: contain; }

/* Breadcrumb */
.amz-breadcrumb { font-size: 0.8rem; color: var(--amz-light); }
.amz-breadcrumb a { color: var(--amz-light); }
.amz-breadcrumb a:hover { color: var(--amz-link-hover); text-decoration: underline; }
.amz-breadcrumb i { font-size: 0.6rem; margin: 0 5px; }

/* SHOP PAGE (List View) */
.main-shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.amz-sidebar { padding-right: 15px; border-right: 1px solid #ddd; }
.filter-section h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; }
.filter-section label { font-size: 0.85rem; color: var(--amz-text); cursor: pointer; }
.clean-list { margin-left: 0; }
.clean-list li { margin-bottom: 5px; font-size: 0.85rem; }
.clean-list a { color: var(--amz-text); }
.clean-list a:hover { color: var(--amz-link-hover); }

.results-header { background: #fff; border: 1px solid #ddd; padding: 10px 15px; margin-bottom: 15px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.sort-select { padding: 5px; border: 1px solid #ccc; border-radius: 4px; background: #f3f3f3; }

.amz-list-card { display: flex; background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 15px; margin-bottom: 15px; gap: 20px; transition: box-shadow 0.2s; }
.amz-list-card:hover { box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.list-img { width: 220px; height: 220px; flex-shrink: 0; background: #f8f8f8; display: flex; align-items: center; justify-content: center; }
.list-img img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.list-info { flex: 1; }
.product-title { font-size: 1.1rem; color: var(--amz-text); font-weight: 500; line-height: 1.3; }
.product-title:hover { color: var(--amz-link-hover); }
.review-count { font-size: 0.85rem; margin-left: 5px; color: var(--amz-link); }
.bought-past-month { font-size: 0.8rem; color: var(--amz-light); margin-top: 5px; }

/* Price Formatting Amazon Style */
.price-row { display: flex; align-items: flex-start; color: var(--amz-price); }
.price-row .currency { font-size: 0.85rem; margin-top: 2px; }
.price-row .whole { font-size: 1.8rem; font-weight: 500; line-height: 1; }
.price-row .fraction { font-size: 0.85rem; margin-top: 2px; }
.price-row.big .whole { font-size: 2.2rem; }

.prime-badge { display: flex; align-items: center; gap: 5px; font-style: italic; font-size: 0.9rem; font-weight: 600; color: #000; }
.prime-badge i { font-size: 0.8rem; }
.delivery { font-size: 0.85rem; color: var(--amz-text); }

/* DETAIL PAGE */
.amz-detail-layout { display: grid; grid-template-columns: 400px 1fr 260px; gap: 30px; align-items: start; background: #fff; padding: 20px 0; }
.detail-gallery { display: flex; gap: 15px; }
.thumb-list { display: flex; flex-direction: column; gap: 10px; width: 40px; }
.thumb-item { width: 40px; height: 40px; border: 1px solid #a2a6ac; border-radius: 2px; cursor: pointer; object-fit: contain; }
.thumb-item:hover, .thumb-item.active { border: 1px solid #e77600; box-shadow: 0 0 3px rgba(231,118,0,0.5); }
.main-image { flex: 1; }
.main-image img { width: 100%; max-height: 500px; object-fit: contain; }

.detail-info { padding: 0 10px; }
.brand-link { font-size: 0.9rem; color: var(--amz-link); display: block; margin-bottom: 5px; }
.product-title-large { font-size: 1.5rem; font-weight: 500; line-height: 1.3; color: #0f1111; margin-bottom: 5px; }
.rating-row { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.amazon-choice { display: inline-block; background: #232f3e; color: #fff; padding: 4px 8px; font-size: 0.85rem; position: relative; }
.amazon-choice::after { content: ''; position: absolute; right: -8px; top: 0; border-top: 13px solid transparent; border-bottom: 13px solid transparent; border-left: 8px solid #232f3e; }
.divider { border: 0; border-top: 1px solid #e7e7e7; margin: 15px 0; }
.old-price { font-size: 0.85rem; color: var(--amz-light); }
.old-price span { text-decoration: line-through; }
.taxes-info { font-size: 0.85rem; color: var(--amz-text); }

.variations p { font-size: 0.9rem; margin-bottom: 5px; }
.color-swatches { display: flex; gap: 10px; }
.swatch { width: 50px; height: 50px; border: 1px solid #ccc; cursor: pointer; padding: 2px; }
.swatch.active, .swatch:hover { border: 1px solid #e77600; }
.swatch img { width: 100%; height: 100%; object-fit: contain; }

.feature-bullets { margin-left: 18px; }
.feature-bullets li { font-size: 0.95rem; margin-bottom: 5px; color: #0f1111; }

.detail-buybox { border: 1px solid #d5d9d9; border-radius: 8px; padding: 15px; }
.delivery-info { font-size: 0.9rem; line-height: 1.4; }
.location-link { font-size: 0.85rem; color: var(--amz-link); cursor: pointer; }
.location-link:hover { color: var(--amz-link-hover); }
.stock-status { font-size: 1.1rem; font-weight: 500; }
.qty-select { width: 100%; padding: 5px; border: 1px solid #d5d9d9; border-radius: 8px; background: #f0f2f2; box-shadow: 0 2px 5px rgba(15,17,17,.15); outline: none; cursor: pointer; }
.secure-txn { font-size: 0.85rem; color: var(--amz-link); display: flex; align-items: center; gap: 5px; }
.seller-info .row { display: grid; grid-template-columns: 100px 1fr; font-size: 0.75rem; margin-bottom: 3px; }
.seller-info .row span { color: var(--amz-light); }

/* CART PAGE */
.cart-page-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.cart-main-box { background: #fff; padding: 20px; margin-bottom: 20px; }
.cart-main-box h1 { font-size: 1.8rem; font-weight: 400; border-bottom: 1px solid #ddd; padding-bottom: 5px; margin-bottom: 5px; }
.deselect-all { font-size: 0.85rem; }
.cart-header-row { border-bottom: 1px solid #ddd; }
.amz-cart-item { display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px solid #ddd; }
.item-checkbox { padding-top: 30px; }
.item-img { width: 180px; text-align: center; }
.item-img img { max-width: 100%; max-height: 180px; object-fit: contain; }
.item-info { flex: 1; }
.item-title { font-size: 1.1rem; color: var(--amz-text); font-weight: 500; display: block; line-height: 1.3; }
.item-actions { display: flex; align-items: center; gap: 10px; }
.qty-select-sm { padding: 4px; border: 1px solid #d5d9d9; border-radius: 8px; background: #f0f2f2; outline: none; box-shadow: 0 2px 5px rgba(15,17,17,.15); }
.separator { color: #ddd; }
.action-link { font-size: 0.75rem; color: var(--amz-link); }
.item-price { font-size: 1.1rem; }
.cart-subtotal-bottom { font-size: 1.1rem; }

.cart-checkout-box { background: #fff; padding: 20px; }
.free-shipping-bar { line-height: 1.4; color: #0f1111; }
.subtotal-main { font-size: 1.1rem; }
.gift-cb { display: flex; align-items: center; gap: 5px; }

/* FOOTER */
.amz-footer { background: var(--amz-nav); color: #fff; font-size: 0.85rem; margin-top: 40px; }
.back-to-top { display: block; background: #37475a; color: #fff; text-align: center; padding: 15px 0; font-size: 0.85rem; }
.back-to-top:hover { background: #485769; text-decoration: none; color:#fff; }
.footer-links { padding: 40px 0; border-bottom: 1px solid #3a4553; }
.f-links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; justify-items: center; }
.f-col h3 { font-size: 1rem; font-weight: 700; margin-bottom: 15px; color: #fff; }
.f-col ul li { margin-bottom: 10px; }
.f-col ul a { color: #ddd; }
.f-col ul a:hover { text-decoration: underline; color: #fff; }
.footer-bottom { background: #131a22; padding: 30px 0; }
.legal-links { margin-top: 15px; font-size: 0.75rem; color: #ddd; }
.legal-links a { color: #ddd; margin: 0 10px; }
.legal-links span { margin-left: 10px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content { padding-top: 150px; }
    .amz-detail-layout { grid-template-columns: 1fr; }
    .detail-buybox { order: -1; margin-bottom: 20px; } /* Buybox moves to top on mobile */
    .cart-page-layout { grid-template-columns: 1fr; }
    .cart-checkout-box { order: -1; margin-bottom: 20px; }
}
@media (max-width: 768px) {
    .amz-location, .amz-orders, .amz-lang { display: none; }
    .h-top-flex { flex-wrap: wrap; }
    .amz-search { order: 3; min-width: 100%; margin-top: 10px; }
    .category-grid { grid-template-columns: 1fr; }
    .main-shop-layout { grid-template-columns: 1fr; }
    .amz-sidebar { display: none; }
    .amz-list-card { flex-direction: column; }
    .list-img { width: 100%; height: 200px; }
    .f-links-grid { grid-template-columns: 1fr 1fr; justify-items: start; }
}
