:root { 
    --amz-dark: #131921; --amz-nav: #232f3e; --amz-gold: #febd69; 
    --amz-orange: #f08804; --bg: #eaeded; --card: #ffffff; --text: #0f1111;
    --success: #007600; --link: #007185; --border: #ddd;
    --gradient-about: linear-gradient(135deg, #232f3e 0%, #007185 100%);
}
.dark-mode { --bg: #0f1111; --card: #1a1a1a; --text: #ffffff; --border: #444; }

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Amazon Ember', Arial, sans-serif; -webkit-tap-highlight-color: transparent; }
body { background-color: var(--bg); color: var(--text); padding-bottom: 75px; transition: 0.3s; overflow-x: hidden; }

/* --- Global Animations --- */
@keyframes flyToCart {
    0% { transform: scale(1); opacity: 1; }
    40% { transform: scale(1.4) rotate(15deg); }
    100% { transform: translate(var(--x), var(--y)) scale(0.1); opacity: 0; }
}
@keyframes successZoom { 0% { transform: scale(0); opacity: 0; } 80% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }

/* --- Splash --- */
#splash { position: fixed; inset: 0; background: white; z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: 0.5s; }
#splash img { width: 150px; }

/* --- Header & Search --- */
header { background-color: var(--amz-nav); padding: 10px 12px; position: sticky; top: 0; z-index: 1000; }
.logo img { height: 22px; filter: brightness(0) invert(1); }
.location-bar { background: #37475a; color: white; padding: 10px; font-size: 13px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.search-wrapper { display: flex; background: white; border-radius: 6px; height: 44px; overflow: hidden; border: 1px solid #aaa; margin-top: 8px; }
.search-wrapper input { flex: 1; border: none; outline: none; padding: 0 12px; font-size: 15px; }
.search-btn { background: var(--amz-gold); padding: 0 15px; display: flex; align-items: center; }

/* --- Hero Slider --- */
.hero-container { height: 200px; width: 100%; overflow: hidden; position: relative; }
.hero-slides { display: flex; width: 500%; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.hero-slides img { width: 20%; object-fit: cover; }

/* --- Product Grid --- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px; }
.p-card { background: var(--card); border-radius: 8px; padding: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); display: flex; flex-direction: column; transition: 0.2s; }
.p-img-box { height: 130px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.p-img-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.p-title { font-size: 12px; height: 32px; overflow: hidden; line-height: 1.3; font-weight: 500; }
.p-price { font-size: 16px; font-weight: bold; color: #B12704; margin: 4px 0; }

.btn { border: none; border-radius: 8px; padding: 10px; font-size: 12px; font-weight: 500; cursor: pointer; transition: 0.2s; }
.btn-cart { background: #ffd814; margin-bottom: 6px; }
.btn-buy { background: #ffa41c; }

/* --- About Section (Half Height Restored) --- */
.footer-branding { background: var(--gradient-about); color: white; padding: 25px 15px; text-align: center; margin-top: 30px; border-radius: 15px 100px 0 0; }
.social-box a { color: var(--amz-gold); font-size: 20px; margin: 0 10px; text-decoration: none; }

/* --- Bottom Sheets & Overlays --- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 5000; display: none; align-items: flex-end; justify-content: center; backdrop-filter: blur(4px); }
.sheet { background: white; width: 100%; max-width: 500px; border-radius: 20px 20px 0 0; padding: 25px; animation: slideUp 0.3s ease-out; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.otp-box { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }
.otp-box input { width: 45px; height: 50px; text-align: center; font-size: 22px; border: 2px solid #ddd; border-radius: 8px; }

/* --- Full Screen Success Animation --- */
#full-success { position: fixed; inset: 0; background: white; z-index: 9999; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.check-circle { width: 100px; height: 100px; background: #007600; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 50px; animation: successZoom 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

/* --- Navigation --- */
.amz-nav-bar { position: fixed; bottom: 0; width: 100%; background: var(--card); display: flex; justify-content: space-around; padding: 10px 0; border-top: 1px solid var(--border); z-index: 1001; }
.nav-item { display: flex; flex-direction: column; align-items: center; color: var(--text); font-size: 20px; text-decoration: none; width: 25%; cursor: pointer; position: relative; }
.nav-item span { font-size: 10px; margin-top: 3px; }
.nav-item.active { color: #007185; }
#cart-count { position: absolute; top: -5px; right: 28%; background: var(--amz-orange); color: #000; font-size: 10px; font-weight: bold; border-radius: 50%; padding: 1px 5px; border: 1px solid white; }

.flying-img { position: fixed; z-index: 9999; pointer-events: none; width: 60px; height: 60px; object-fit: contain; }


