/* ============================================================ CURVA — COMMON STYLES Shared across ALL pages: reset, top bar, navbar, icons, cart icon, footer, breadcrumb component, product-card component (used by the Home & Shop product grids), toast notification, cart-bounce/skeleton loading animations, and the product card fly-in animation. Load this file BEFORE the page-specific file on every page. ============================================================ */ *{margin:0;padding:0;box-sizing:border-box;} body{font-family:'Poppins',sans-serif;background:#fff;} /* Top Bar */ .top-bar{background:#000;color:#fff;text-align:center;padding:10px;font-size:14px;font-weight:500;letter-spacing:.5px;} /* Navbar */ .navbar{padding:12px 0;} .logo{font-size:34px;font-weight:800;color:#111;letter-spacing:2px;} .logo:hover{color:#111;} .nav-item{margin:0 18px;} .nav-link{color:#111;font-weight:500;position:relative;} .nav-link::after{content:"";position:absolute;left:0;bottom:-8px;width:0%;height:2px;background:#e4002b;transition:.3s;} .nav-link:hover::after{width:100%;} .nav-link.active::after{width:100%;} /* Icons */ .icons{display:flex;align-items:center;gap:28px;} .icons i{font-size:20px;cursor:pointer;transition:.3s;} .icons i:hover{color:#e4002b;} .icons a{color:#111;text-decoration:none;} .cart-icon{position:relative;cursor:pointer;color:#111;text-decoration:none;} .cart-icon:hover{color:#e4002b;} .product-link{text-decoration:none;color:inherit;display:block;} #cartCount{position:absolute;top:-8px;right:-10px;min-width:20px;height:20px;padding:0 6px;background:#e4002b;color:#fff;border-radius:50px;display:flex;justify-content:center;align-items:center;font-size:11px;font-weight:700;border:2px solid #fff;line-height:1;} /* ================ Products ================ */ .products{padding:90px 0;} .section-title{font-size:38px;font-weight:700;color:#111;} .view-all{color:#111;text-decoration:none;font-weight:600;transition:.3s;} .view-all:hover{color:#e4002b;} .product-card{background:#fff;border-radius:22px;overflow:hidden;position:relative;border:1px solid #ededed;transition:.35s;height:100%;} .product-card:hover{transform:translateY(-8px);box-shadow:0 20px 45px rgba(0,0,0,.12);} .sale-badge{position:absolute;top:14px;left:11px;background:#e4002b;color:#fff;padding:7px 16px;border-radius:8px;font-size:13px;font-weight:600;z-index:5;} .product-image{width:100%;transition:.4s;} .product-card:hover .product-image{transform:scale(1.04);} .product-info{padding:22px;} .product-info h4{font-size:23px;font-weight:600;color:#111;margin-bottom:5px;} .product-type{color:#666;margin-bottom:18px;} .price-box{display:flex;align-items:center;gap:12px;} .new-price{font-size:24px;font-weight:700;color:#111;} .old-price{color:#888;text-decoration:line-through;font-size:18px;} .bag-btn{position:absolute;right:18px;bottom:18px;width:48px;height:48px;border:none;border-radius:12px;background:#111;color:#fff;transition:.3s;} .bag-btn:hover{background:#e4002b;transform:scale(1.08);} /* ================ FOOTER ================ */ .footer{background:#0d0d0d;color:#fff;padding:90px 0 60px;position:relative;overflow:hidden;} /* Premium Glow */ .footer::before{content:"";position:absolute;top:-250px;right:-250px;width:500px;height:500px;background:radial-gradient(circle,rgba(217,4,41,.08),transparent 70%);} .footer .container{position:relative;z-index:2;} /* Phone-only footer redesign — hidden by default (desktop/tablet), shown only below the small-phone breakpoint in responsive.css. */ .footer-mobile{display:none;} /* ================ Logo ================ */ .footer-logo{width:100px;margin-bottom:25px;transition:.4s;} .footer-logo:hover{transform:scale(1.04);} .footer-line{width:70px;height:4px;background:#d90429;border-radius:50px;margin-bottom:30px;} .footer-text{color:#c7c7c7;line-height:1.9;font-size:16px;margin-bottom:40px;} /* ================ Titles ================ */ .footer h4{font-size:24px;font-weight:700;margin-bottom:15px;} .footer-small-line{width:38px;height:3px;background:#d90429;margin-bottom:28px;border-radius:30px;transition:.4s;} .col-lg-2:hover .footer-small-line,.col-lg-4:hover .footer-small-line{width:65px;} /* ================ Links ================ */ .footer-links{list-style:none;padding:0;margin:0;} .footer-links li{margin-bottom:18px;} .footer-links a{color:#cfcfcf;text-decoration:none;transition:.35s;} .footer-links a:hover{color:#fff;padding-left:10px;} /* ================ Social ================= */ .follow-title{font-size:22px;margin-bottom:20px;font-weight:700;} .social-icons{display:flex;gap:18px;} .social-icons a{width:55px;height:55px;border-radius:50%;border:1px solid #444;display:flex;justify-content:center;align-items:center;color:#fff;text-decoration:none;font-size:20px;transition:.4s;} .social-icons a:hover{background:#d90429;border-color:#d90429;transform:translateY(-8px);box-shadow:0 10px 30px rgba(217,4,41,.35);} /* ================ COD ================= */ .cod-box{margin-top:35px;display:flex;align-items:center;gap:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);backdrop-filter:blur(10px);padding:22px;border-radius:18px;transition:.4s;} .cod-box:hover{transform:translateY(-6px);border-color:#d90429;box-shadow:0 15px 35px rgba(0,0,0,.25);} .cod-icon{width:65px;height:65px;background:rgba(217,4,41,.08);border-radius:50%;display:flex;justify-content:center;align-items:center;flex-shrink:0;transition:.4s;} .cod-icon i{font-size:28px;color:#d90429;transition:.4s;} .cod-box:hover .cod-icon{background:#d90429;} .cod-box:hover .cod-icon i{color:#fff;transform:translateX(3px);} .cod-box h5{font-weight:700;margin-bottom:8px;} .cod-box p{color:#c8c8c8;margin:0;line-height:1.7;} /* ================ BREADCRUMB ================ */ .breadcrumb-section{background:#fff;padding:25px 0;border-bottom:1px solid #efefef;} .breadcrumb{margin:0;font-size:15px;} .breadcrumb a{color:#777;text-decoration:none;transition:.3s;} .breadcrumb a:hover{color:#e4002b;} .breadcrumb-item.active{color:#111;font-weight:600;} .breadcrumb-item + .breadcrumb-item::before{color:#999;} .toast-notification{position:fixed;top:30px;left:-400px;/* was right: -400px */ right:auto;width:340px;background:#fff;border-radius:14px;padding:18px;display:flex;align-items:center;gap:15px;box-shadow:0 15px 40px rgba(0,0,0,.12);transition:right .4s ease;z-index:9999;overflow:hidden;} .toast-notification.show{left:30px;} .toast-progress{position:absolute;left:0;bottom:0;width:100%;height:4px;background:#E30613;transform-origin:left;} .toast-icon{width:50px;height:50px;border-radius:50%;background:#E30613;color:#fff;display:flex;justify-content:center;align-items:center;font-size:22px;flex-shrink:0;} .toast-content{flex:1;} .toast-content h6{margin:0;font-size:18px;font-weight:700;color:#111;} .toast-content p{margin:4px 0 0;color:#666;font-size:14px;} @keyframes cartBounce{0%{transform:scale(1);} 30%{transform:scale(1.35);} 50%{transform:scale(.9);} 70%{transform:scale(1.15);} 100%{transform:scale(1);}} .cart-bounce{animation:cartBounce .5s ease;} .product-skeleton{background:#fff;border-radius:18px;padding:15px;box-shadow:0 10px 30px rgba(0,0,0,.06);} .skeleton-image,.skeleton-title,.skeleton-price,.skeleton-button{background:linear-gradient(90deg,#f2f2f2 25%,#e8e8e8 50%,#f2f2f2 75%);background-size:200% 100%;animation:skeletonLoading 1.2s infinite;border-radius:12px;} .skeleton-image{width:100%;aspect-ratio:1/1;} .skeleton-title{width:80%;height:18px;margin-top:15px;} .skeleton-price{width:45%;height:18px;margin-top:10px;} .skeleton-button{width:100%;height:44px;margin-top:20px;} @keyframes skeletonLoading{0%{background-position:200% 0;} 100%{background-position:-200% 0;}} .cart-icon a{color:#111;text-decoration:none;} .cart-icon a:hover{color:#e4002b;} .product-wrapper{transition:transform .9s cubic-bezier(.22,1,.36,1),opacity .6s ease;will-change:transform;} .product-wrapper{opacity:0;} .play-left{animation:leftCollision 1.2s cubic-bezier(.22,1,.36,1) forwards;} .play-bottom{animation:bottomCollision 1.2s cubic-bezier(.22,1,.36,1) forwards;} .play-right{animation:rightCollision 1.2s cubic-bezier(.22,1,.36,1) forwards;} @keyframes leftCollision{0%{opacity:0;transform:translateX(-320px);} 55%{opacity:1;transform:translateX(55px);} 75%{transform:translateX(-15px);} 100%{opacity:1;transform:translateX(0);}} @keyframes bottomCollision{0%{opacity:0;transform:translateY(250px);} 55%{opacity:1;transform:translateY(-35px);} 75%{transform:translateY(12px);} 100%{opacity:1;transform:translateY(0);}} @keyframes rightCollision{0%{opacity:0;transform:translateX(320px);} 55%{opacity:1;transform:translateX(-55px);} 75%{transform:translateX(15px);} 100%{opacity:1;transform:translateX(0);}} /* The left/bottom/right "collision" entrance above was built assuming a 3-column grid — index%3 in home.js hands out left/bottom/right per column so all three cards converge together. Below the point where the grid drops to one column, product cards get NO entrance animation at all: they render at full opacity immediately instead of flying or fading in. home.js's scroll observer adds/removes .play-left/.play-bottom/ .play-right as each card enters/exits the viewport (so the desktop animation can replay). Overriding only those classes meant a card would revert to .product-wrapper's base opacity:0 — invisible — the moment JS removed the class on scroll-out. Targeting .product-wrapper itself with !important instead makes this immune to whatever classes JS adds or removes: it's simply always visible on mobile. */ @media (max-width:767.98px){.product-wrapper{animation:none !important;opacity:1 !important;transform:none !important;transition:none !important;}} /* ============================================================ CURVA — MINI CART Tablet + Mobile ONLY Hidden when cart is empty ============================================================ */ .mini-cart{display:none;position:fixed;left:50%;bottom:18px;transform:translateX(-50%);width:calc(100% - 32px);max-width:760px;z-index:9998;pointer-events:none;} /* ============================================================ INNER ============================================================ */ .mini-cart-inner{display:flex;align-items:center;width:100%;padding:10px 12px;background:rgba(255,255,255,.97);border:1px solid #e8e8e8;border-radius:18px;box-shadow:0 12px 40px rgba(0,0,0,.16);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);text-decoration:none;color:#111;pointer-events:auto;transition:transform .25s ease,box-shadow .25s ease;} .mini-cart-inner:hover{transform:translateY(-3px);box-shadow:0 18px 45px rgba(0,0,0,.20);color:#111;} /* ============================================================ IMAGE ============================================================ */ .mini-cart-image-wrap{width:58px;height:58px;flex:0 0 58px;overflow:hidden;border-radius:12px;background:#f4f4f4;} .mini-cart-image-wrap img{width:100%;height:100%;display:block;object-fit:cover;} /* ============================================================ PRODUCT INFO ============================================================ */ .mini-cart-info{min-width:0;flex:1;margin-left:13px;} .mini-cart-name{font-size:15px;font-weight:700;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;} .mini-cart-meta{display:flex;align-items:center;gap:6px;margin-top:5px;color:#777;font-size:12px;} /* ============================================================ TOTAL ============================================================ */ .mini-cart-total{margin-left:15px;font-size:17px;font-weight:700;color:#e4002b;white-space:nowrap;} /* ============================================================ ARROW ============================================================ */ .mini-cart-arrow{width:42px;height:42px;margin-left:12px;flex:0 0 42px;display:flex;align-items:center;justify-content:center;background:#e4002b;color:#fff;border-radius:11px;font-size:15px;transition:.25s ease;} .mini-cart-inner:hover .mini-cart-arrow{transform:translateX(3px);} /* ============================================================ SHOW ANIMATION ============================================================ */ .mini-cart.show{display:block;animation:miniCartUp .4s cubic-bezier(.22,1,.36,1);} @keyframes miniCartUp{from{opacity:0;transform:translate(-50%,30px);} to{opacity:1;transform:translate(-50%,0);}} /* ============================================================ TABLET 768px → 1199px This is where the mini cart appears. ============================================================ */ @media (min-width:768px) and (max-width:1199.98px){.mini-cart{display:none;bottom:20px;width:calc(100% - 40px);max-width:760px;} .mini-cart.show{display:block;}} /* ============================================================ MOBILE 0px → 767px ============================================================ */ @media (max-width:767.98px){.mini-cart{display:none;left:50%;bottom:12px;width:calc(100% - 20px);max-width:none;} .mini-cart.show{display:block;} .mini-cart-inner{padding:8px 9px;border-radius:16px;} .mini-cart-image-wrap{width:52px;height:52px;flex:0 0 52px;border-radius:10px;} .mini-cart-info{margin-left:10px;} .mini-cart-name{font-size:13px;} .mini-cart-meta{font-size:11px;margin-top:4px;} .mini-cart-total{font-size:14px;margin-left:8px;} .mini-cart-arrow{width:38px;height:38px;flex:0 0 38px;margin-left:8px;border-radius:10px;font-size:13px;}} /* ============================================================ SMALL PHONES ============================================================ */ @media (max-width:400px){.mini-cart{width:calc(100% - 14px);bottom:8px;} .mini-cart-image-wrap{width:48px;height:48px;flex-basis:48px;} .mini-cart-name{font-size:12px;} .mini-cart-meta{font-size:10px;} .mini-cart-total{font-size:13px;} .mini-cart-arrow{width:35px;height:35px;flex-basis:35px;margin-left:6px;}}