/* =====================================================
   RESET
===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", "Anek Bangla", sans-serif;
  background: #ffffff;
  color: #171717;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  width: 100%;
  display: block;
}

button,
input,
select {
  font-family: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* =====================================================
   VARIABLES
===================================================== */

:root {
  --primary: #6c4df6;
  --primary-dark: #5034d4;
  --secondary: #ff6b6b;

  --dark: #171717;
  --gray: #6b7280;
  --light-gray: #f5f5f7;
  --border: #e7e7e7;

  --white: #ffffff;

  --shadow: 0 15px 40px rgba(0, 0, 0, 0.08);

  --transition: 0.35s ease;
}

/* =====================================================
   COMMON
===================================================== */

.container {
  width: min(1180px, 92%);
  margin: auto;
}

.section {
  padding: 100px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading.left {
  text-align: left;
  margin-bottom: 0;
}

.section-heading span,
.about-content > span,
.newsletter-box span,
.promo-box span {
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-heading h2 {
  font-size: 38px;
  margin: 8px 0;
}

.section-heading p {
  color: var(--gray);
}

/* =====================================================
   BUTTON
===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px 25px;

  border-radius: 10px;

  font-weight: 600;

  border: none;

  transition: var(--transition);
}

.primary-btn {
  background: var(--primary);
  color: white;
}

.primary-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(108, 77, 246, 0.3);
}

.secondary-btn {
  border: 1px solid var(--border);
  background: white;
}

.secondary-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

/* =====================================================
   HEADER
===================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  z-index: 1000;

  background: rgba(255, 255, 255, 0.9);

  backdrop-filter: blur(15px);

  border-bottom: 1px solid rgba(0, 0, 0, 0.05);

  transition: var(--transition);
}

.nav-container {
  height: 75px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 25px;
  font-weight: 800;
}
.logo img {
  width: 12rem;
}

.logo span {
  color: var(--primary);
}

.navbar {
  display: flex;
  gap: 30px;
}

.navbar a {
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

/* testingh code  */

#navbar a::after,
#navbar a::before {
  backface-visibility: hidden;
  border: 1px solid transparent;
  bottom: 0px;
  display: block;
  content: "";
  margin: 10px auto;
  width: 0;
  display: block;
  bottom: 0;
  position: relative;
  transition: 0.5s ease-in-out;
}

#navbar a:hover::after,
#navbar a:hover::before {
  backface-visibility: hidden;
  border: 1px solid red;
  width: 100%;
  transition: 0.5s ease-in-out;
}

/* testing close  */

.navbar a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn,
.menu-btn {
  width: 42px;
  height: 42px;

  border: none;
  background: transparent;

  position: relative;

  border-radius: 50%;

  transition: var(--transition);
}

.icon-btn:hover,
.menu-btn:hover {
  background: var(--light-gray);
  color: var(--primary);
}

.badge {
  position: absolute;

  top: -2px;
  right: -2px;

  width: 18px;
  height: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--secondary);
  color: white;

  border-radius: 50%;

  font-size: 10px;
}

.menu-btn {
  display: none;
}

/* =====================================================
   SEARCH
===================================================== */

.search-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.65);

  display: flex;
  align-items: flex-start;
  justify-content: center;

  padding-top: 130px;

  opacity: 0;
  visibility: hidden;

  transition: var(--transition);

  z-index: 2000;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-box {
  width: min(600px, 90%);

  background: white;

  padding: 35px;

  border-radius: 20px;

  position: relative;

  transform: translateY(-30px);

  transition: var(--transition);
}

.search-overlay.active .search-box {
  transform: translateY(0);
}

.search-box h2 {
  margin-bottom: 20px;
}

.close-search {
  position: absolute;

  right: 20px;
  top: 20px;

  border: none;
  background: transparent;

  font-size: 20px;
}

.search-input {
  position: relative;
}

.search-input input {
  width: 100%;

  padding: 16px 45px 16px 18px;

  border: 1px solid var(--border);

  border-radius: 10px;

  outline: none;

  font-size: 15px;
}

.search-input input:focus {
  border-color: var(--primary);
}

.search-input i {
  position: absolute;

  right: 17px;
  top: 50%;

  transform: translateY(-50%);

  color: var(--gray);
}

/* =====================================================
   HERO
===================================================== */

.hero {
  padding-top: 160px;

  min-height: 750px;

  background: linear-gradient(135deg, #f6f4ff, #ffffff);
}

.hero-container {
  display: grid;

  grid-template-columns: 1fr 1fr;

  align-items: center;

  gap: 60px;
}

.hero-tag {
  display: inline-block;

  padding: 8px 14px;

  border-radius: 30px;

  background: #ebe7ff;

  color: var(--primary);

  font-size: 13px;
  font-weight: 600;

  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: clamp(42px, 5vw, 70px);

  line-height: 1.1;

  margin-bottom: 25px;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  color: var(--gray);

  max-width: 550px;

  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  height: 500px;

  object-fit: cover;

  border-radius: 30px;

  position: relative;

  z-index: 2;

  box-shadow: var(--shadow);
}

.hero-circle {
  position: absolute;

  width: 400px;
  height: 400px;

  background: #ded8ff;

  border-radius: 50%;

  top: -40px;
  right: -40px;
}

.floating-card {
  position: absolute;
  left: -30px;
  bottom: 30px;
  z-index: 5;
  background: white;
  padding: 16px;
  border-radius: 15px;
  border: 1px solid var(--secondary);
  display: flex;
  align-items: center;
  animation: bump 2.5s ease-in-out infinite;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  gap: 12px;
  box-shadow: var(--shadow);
}

@keyframes bump {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-12px) scale(1.05);
    }
}
.delivery{
  color: #6c4df6;
  font-weight: bold;

}

@keyframes moveInBottom {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

.floating-card i {
  color: var(--primary);
  font-size: 25px;
}

.floating-card small {
  display: block;
  color: var(--gray);
}

/* =====================================================
   FLOAT
===================================================== */

/* =====================================================
   FLASH SALE
===================================================== */
        /* =========================================
   FLASH SALE SECTION
========================================= */

:root {
    --primary: #6c4df6;
    --primary-dark: #5034d4;
    --secondary: #ff6b6b;
    --sale-bg: #f8f7ff;
    --text-dark: #171717;
    --text-light: #777;
}


/* Main Section */

.flash-sale {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    background: var(--sale-bg);
}


/* Container */

.flash-sale .container {
    width: 86%;
    max-width: 1250px;
    margin: auto;
    position: relative;
    z-index: 2;
}

/* extra flash sale product */

/* =========================
   EXTRA FLASH SALE PRODUCTS
========================= */

.extra-products{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;

    max-height:0;
    opacity:0;
    overflow:hidden;

    transform:translateY(80px);

    transition:
        max-height 1s ease,
        opacity .7s ease,
        transform .8s ease;

    margin-top:0;
}

/* Show Animation */

.extra-products.show{
    max-height:1200px;
    opacity:1;
    transform:translateY(0);

    margin-top:30px;
}

/* Individual card animation */

.extra-card{
    opacity:0;
    transform:translateY(60px);
    transition:.7s ease;
}

.extra-products.show .extra-card{
    opacity:1;
    transform:translateY(0);
}

/* Delay animation */

.extra-products.show .extra-card:nth-child(1){
    transition-delay:.1s;
}

.extra-products.show .extra-card:nth-child(2){
    transition-delay:.2s;
}

.extra-products.show .extra-card:nth-child(3){
    transition-delay:.3s;
}

.extra-products.show .extra-card:nth-child(4){
    transition-delay:.4s;
}


/* View Button */

.view-btn-wrapper{
    display:flex;
    justify-content:center;
    margin-top:45px;
}

#viewFlashBtn{
    padding:15px 32px;

    border:1px solid #6c4df6;
    background:transparent;

    color:#6848f5;

    border-radius:12px;

    font-size:16px;
    font-weight:600;

    cursor:pointer;

    transition:.3s;
}

#viewFlashBtn:hover{
    background:#6848f5;
    color:white;
}

#viewFlashBtn span{
    margin-left:8px;
}


/* Responsive */

@media(max-width:1100px){

    .extra-products{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:600px){

    .extra-products{
        grid-template-columns:1fr;
    }

    #viewFlashBtn{
        width:90%;
    }

}




/* =========================================
   BACKGROUND DECORATION
========================================= */

.sale-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
}

.sale-shape-1 {
    width: 280px;
    height: 280px;
    background: rgba(108, 77, 246, 0.08);
    top: -100px;
    left: -80px;
    animation: floatingShape 7s ease-in-out infinite;
}

.sale-shape-2 {
    width: 220px;
    height: 220px;
    background: rgba(255, 107, 107, 0.07);
    right: -60px;
    bottom: -80px;
    animation: floatingShape 8s ease-in-out infinite reverse;
}

.sale-shape-3 {
    width: 100px;
    height: 100px;
    border: 20px solid rgba(108, 77, 246, 0.04);
    right: 30%;
    top: 20%;
    animation: rotateShape 12s linear infinite;
}


@keyframes floatingShape {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px);
    }
}


@keyframes rotateShape {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* =========================================
   HEADER
========================================= */

.flash-sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 45px;
}


.sale-title-area {
    max-width: 600px;
}


.sale-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 16px;

    background: rgba(108, 77, 246, 0.1);
    color: var(--primary);

    border-radius: 30px;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.5px;
}


.sale-fire {
    display: inline-block;
    animation: fireShake 0.8s ease-in-out infinite;
}


@keyframes fireShake {

    0%,
    100% {
        transform: scale(1) rotate(0);
    }

    50% {
        transform: scale(1.25) rotate(-8deg);
    }
}


.sale-title-area h2 {
    margin: 15px 0 8px;

    font-size: 38px;
    font-weight: 800;

    color: var(--text-dark);
}


.sale-title-area h2 span {
    color: var(--primary);
}


.sale-title-area p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================
   COUNTDOWN
========================================= */

.sale-countdown-wrapper {
    padding: 18px 22px;

    background: white;

    border: 1px solid rgba(108, 77, 246, 0.12);

    border-radius: 16px;

    box-shadow:
        0 10px 35px rgba(65, 45, 150, 0.08);

    min-width: 350px;
}


.countdown-title {
    color: #777;
    font-size: 12px;
    text-align: center;
    margin-bottom: 10px;
}


.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


.time-box {
    width: 55px;
    height: 58px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: #f7f5ff;

    border-radius: 10px;

    border: 1px solid rgba(108, 77, 246, 0.1);
}


.time-box span {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}


.time-box small {
    margin-top: 5px;
    font-size: 9px;
    color: #777;
}


.time-colon {
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;
}


/* Seconds blinking */

.seconds-box span {
    animation: secondsPulse 1s infinite;
}


@keyframes secondsPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}


/* =========================================
   PRODUCT GRID
========================================= */

.flash-products {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}


/* =========================================
   PRODUCT CARD
========================================= */

.flash-product-card {
    position: relative;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 18px;

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


.flash-product-card:hover {

    transform: translateY(-8px);

    border-color: rgba(108, 77, 246, 0.25);

    box-shadow:
        0 18px 45px rgba(67, 45, 150, 0.13);
}


/* =========================================
   IMAGE
========================================= */

.product-image {
    position: relative;

    height: 260px;

    overflow: hidden;

    background: #f6f6f6;
}


.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.6s cubic-bezier(.2, .8, .2, 1);
}


.flash-product-card:hover
.product-image img {

    transform: scale(1.08);
}


/* =========================================
   DISCOUNT BADGE
========================================= */

.discount-badge {
    position: absolute;

    top: 14px;
    left: 14px;

    z-index: 3;

    padding: 7px 11px;

    background: var(--secondary);

    color: white;

    font-size: 12px;
    font-weight: 800;

    border-radius: 8px;

    box-shadow:
        0 5px 15px rgba(255, 107, 107, 0.3);

    animation: discountPulse 2s infinite;
}


@keyframes discountPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}


/* =========================================
   WISHLIST
========================================= */

.wishlist-btn {
    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 3;

    width: 36px;
    height: 36px;

    border: none;

    border-radius: 50%;

    background: white;

    color: #555;

    font-size: 21px;

    cursor: pointer;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.08);

    transition: all 0.3s ease;
}


.wishlist-btn:hover {

    background: var(--secondary);

    color: white;

    transform: scale(1.1);
}


/* =========================================
   QUICK VIEW
========================================= */

.quick-view {

    position: absolute;

    left: 50%;
    bottom: 15px;

    transform:
        translate(-50%, 20px);

    opacity: 0;

    background: white;

    color: var(--primary);

    padding: 9px 18px;

    border-radius: 30px;

    font-size: 12px;
    font-weight: 700;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.12);

    transition: all 0.35s ease;

    cursor: pointer;
}


.flash-product-card:hover
.quick-view {

    opacity: 1;

    transform:
        translate(-50%, 0);
}


/* =========================================
   PRODUCT INFO
========================================= */

.product-info {
    padding: 20px;
}


.product-category {

    font-size: 11px;

    color: var(--primary);

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


.product-info h3 {

    margin: 7px 0 8px;

    color: #222;

    font-size: 17px;

    font-weight: 700;
}


/* =========================================
   RATING
========================================= */

.product-rating {

    color: #ffb400;

    font-size: 13px;

    margin-bottom: 12px;
}


.product-rating span {

    color: #999;

    font-size: 11px;

    margin-left: 4px;
}


/* =========================================
   PRICE
========================================= */

.product-price {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 15px;
}


.product-price strong {

    color: var(--primary);

    font-size: 21px;

    font-weight: 800;
}


.product-price del {

    color: #aaa;

    font-size: 13px;
}


/* =========================================
   STOCK
========================================= */

.stock-info {

    margin-bottom: 16px;
}


.stock-text {

    display: flex;

    justify-content: space-between;

    margin-bottom: 6px;

    font-size: 10px;

    color: #777;
}


.stock-text span:first-child {

    color: var(--secondary);

    font-weight: 700;
}


.stock-bar {

    width: 100%;

    height: 5px;

    background: #eeeeee;

    border-radius: 10px;

    overflow: hidden;
}


.stock-bar span {

    display: block;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            #8c76ff
        );

    border-radius: 10px;

    position: relative;

    overflow: hidden;
}


/* Moving shine */

.stock-bar span::after {

    content: "";

    position: absolute;

    top: 0;
    left: -50px;

    width: 50px;
    height: 100%;

    background:
        rgba(255,255,255,0.45);

    animation:
        stockShine 2s linear infinite;
}


@keyframes stockShine {

    from {
        left: -50px;
    }

    to {
        left: 100%;
    }
}


/* =========================================
   ADD TO CART
========================================= */

.sale-cart-btn {

    width: 100%;

    border: none;

    padding: 12px;

    border-radius: 9px;

    background: var(--primary);

    color: white;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    transition: all 0.3s ease;
}


.sale-cart-btn:hover {

    background: var(--primary-dark);

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(108, 77, 246, 0.25);
}


.sale-cart-btn:active {

    transform: scale(0.97);
}


/* =========================================
   VIEW ALL BUTTON
========================================= */

.view-all-sale {

    text-align: center;

    margin-top: 40px;
}


.view-all-sale a {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 13px 25px;

    border: 1px solid var(--primary);

    color: var(--primary);

    text-decoration: none;

    border-radius: 9px;

    font-size: 13px;

    font-weight: 700;

    transition: all 0.3s ease;
}


.view-all-sale a span {

    transition: transform 0.3s ease;
}


.view-all-sale a:hover {

    background: var(--primary);

    color: white;
}


.view-all-sale a:hover span {

    transform: translateX(5px);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .flash-products {

        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 800px) {

    .flash-sale-header {

        flex-direction: column;

        align-items: flex-start;
    }

    .sale-countdown-wrapper {

        width: 100%;

        min-width: auto;
    }

}


@media (max-width: 550px) {

    .flash-sale {

        padding: 60px 0;
    }

    .flash-sale .container {

        width: 92%;
    }

    .sale-title-area h2 {

        font-size: 30px;
    }

    .flash-products {

        grid-template-columns: 1fr;
    }

    .product-image {

        height: 300px;
    }

    .countdown {

        gap: 4px;
    }

    .time-box {

        width: 48px;
        height: 52px;
    }

}

/* =====================================================
   FLASH SALE
===================================================== */

/* =====================================================
   FEATURES
===================================================== */

.features {
  padding: 35px 0;
}

.features-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 20px;
}

.feature-card {
  display: flex;
  align-items: center;

  gap: 15px;

  padding: 20px;

  border: 1px solid var(--border);

  border-radius: 15px;

  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-card i {
  font-size: 25px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 15px;
}

.feature-card p {
  color: var(--gray);
  font-size: 12px;
}

/* =====================================================
   CATEGORIES
===================================================== */

.category-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 20px;
}

.category-card {
  border: 1px solid var(--border);

  background: white;

  padding: 35px 20px;

  border-radius: 20px;

  text-align: center;

  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-8px);

  border-color: var(--primary);

  box-shadow: var(--shadow);
}

.category-card i {
  font-size: 35px;

  color: var(--primary);

  margin-bottom: 15px;
}

.category-card h3 {
  margin-bottom: 5px;
}

.category-card p {
  font-size: 13px;
  color: var(--gray);
}

/* =====================================================
   PRODUCTS
===================================================== */

.products {
  background: var(--light-gray);
}

.products-top {
  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  margin-bottom: 35px;
}

.product-controls select {
  padding: 12px 15px;

  border: 1px solid var(--border);

  border-radius: 8px;

  background: white;

  outline: none;
}

.filter-buttons {
  display: flex;

  justify-content: center;

  gap: 10px;

  flex-wrap: wrap;

  margin-bottom: 35px;
}

.filter-btn {
  border: none;

  background: white;

  padding: 10px 20px;

  border-radius: 30px;

  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
}

.product-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 25px;
}

.product-card {
  background: white;

  border-radius: 18px;

  overflow: hidden;

  position: relative;

  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);

  box-shadow: var(--shadow);
}

.product-image {
  position: relative;
  overflow: hidden;
}

.product-image img {
  height: 250px;

  object-fit: cover;

  transition: 0.5s ease;
}

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

.product-actions {
  position: absolute;

  top: 15px;
  right: 15px;

  display: flex;
  flex-direction: column;

  gap: 8px;
}

.product-actions button {
  width: 38px;
  height: 38px;

  border: none;

  background: white;

  border-radius: 50%;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);

  transition: var(--transition);
}

.product-actions button:hover {
  background: var(--primary);
  color: white;
}

.product-info {
  padding: 20px;
}

.product-category {
  color: var(--primary);

  font-size: 11px;

  text-transform: uppercase;

  font-weight: 600;
}

.product-info h3 {
  font-size: 16px;

  margin: 5px 0;
}

.product-rating {
  color: #f59e0b;

  font-size: 12px;

  margin-bottom: 10px;
}

.product-bottom {
  display: flex;

  align-items: center;

  justify-content: space-between;
}

.product-price {
  font-weight: 700;
  font-size: 18px;
}

.add-cart {
  width: 40px;
  height: 40px;

  border: none;

  background: var(--primary);

  color: white;

  border-radius: 10px;

  transition: var(--transition);
}

.add-cart:hover {
  background: var(--primary-dark);

  transform: rotate(5deg) scale(1.05);
}

/* =====================================================
   PROMO
===================================================== */

.promo-box {
  background: linear-gradient(135deg, #6c4df6, #8d74ff);

  color: white;

  border-radius: 25px;

  padding: 55px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  overflow: hidden;

  position: relative;
}

.promo-box span {
  color: white;
}

.promo-box h2 {
  font-size: 38px;

  max-width: 600px;

  margin: 10px 0;
}

.promo-box p {
  opacity: 0.9;

  margin-bottom: 20px;
}

.promo-btn {
  background: white;
  color: var(--primary);
}

.promo-btn:hover {
  transform: translateY(-3px);
}

.promo-icon {
  width: 170px;
  height: 170px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.15);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 70px;

  /* animation: float 3s infinite; */
}

/* =====================================================
   ABOUT
===================================================== */

.about {
  background: #fafafa;
}

.about-container {
  display: grid;

  grid-template-columns: 1fr 1fr;

  align-items: center;

  gap: 70px;
}

.about-image img {
  height: 450px;

  object-fit: cover;

  border-radius: 25px;

  box-shadow: var(--shadow);
}

.about-content h2 {
  font-size: 45px;

  line-height: 1.15;

  margin: 10px 0 20px;
}

.about-content p {
  color: var(--gray);

  margin-bottom: 30px;
}

.about-stats {
  display: flex;

  gap: 50px;
}

.about-stats strong {
  display: block;

  font-size: 28px;

  color: var(--primary);
}

.about-stats span {
  font-size: 13px;

  color: var(--gray);
}

/* =====================================================
   NEWSLETTER
===================================================== */

.newsletter-box {
  background: var(--light-gray);

  border-radius: 25px;

  padding: 50px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 30px;
}

.newsletter-box h2 {
  font-size: 32px;

  margin: 5px 0;
}

.newsletter-box p {
  color: var(--gray);
}

.newsletter-box form {
  display: flex;

  gap: 10px;

  min-width: 420px;
}

.newsletter-box input {
  flex: 1;

  border: 1px solid var(--border);

  padding: 14px;

  border-radius: 10px;

  outline: none;
}

.newsletter-box input:focus {
  border-color: var(--primary);
}

/* =====================================================
   FOOTER
===================================================== */

.footer {
  background: #111111;

  color: white;

  padding-top: 70px;
}

.footer-grid {
  display: grid;

  grid-template-columns: 2fr 1fr 1fr 1.5fr;

  gap: 50px;

  padding-bottom: 50px;
}

.footer .logo {
  display: inline-block;

  margin-bottom: 15px;
}

.footer-column > p {
  color: #aaa;

  font-size: 13px;

  margin-bottom: 10px;
}

.footer-column h3 {
  margin-bottom: 20px;
}

.footer-column > a {
  display: block;

  color: #aaa;

  font-size: 13px;

  margin-bottom: 10px;

  transition: var(--transition);
}

.footer-column > a:hover {
  color: white;

  transform: translateX(5px);
}

.footer-column p i {
  width: 20px;
  color: var(--primary);
}

.social-links {
  display: flex;

  gap: 10px;

  margin-top: 20px;
}

.social-links a {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #222;

  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);

  transform: translateY(-4px);
}

.footer-bottom {
  text-align: center;

  border-top: 1px solid #292929;

  padding: 20px;

  color: #888;

  font-size: 12px;
}

/* =====================================================
   CART
===================================================== */

.cart-overlay {
  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.5);

  z-index: 1500;

  opacity: 0;

  visibility: hidden;

  transition: var(--transition);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;

  right: 0;
  top: 0;

  width: min(420px, 90%);

  height: 100vh;

  background: white;

  z-index: 1600;

  transform: translateX(100%);

  transition: 0.4s ease;

  display: flex;

  flex-direction: column;
}

.cart-sidebar.active {
  transform: translateX(0);
}

.cart-header {
  padding: 25px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  border-bottom: 1px solid var(--border);
}

.cart-header button {
  border: none;

  background: transparent;

  font-size: 20px;
}

.cart-items {
  flex: 1;

  overflow-y: auto;

  padding: 20px;
}

.empty-cart {
  text-align: center;

  padding: 80px 20px;

  color: var(--gray);
}

.empty-cart i {
  font-size: 50px;

  margin-bottom: 15px;

  color: #ddd;
}

.cart-item {
  display: grid;

  grid-template-columns: 70px 1fr auto;

  gap: 12px;

  align-items: center;

  padding-bottom: 15px;

  margin-bottom: 15px;

  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 70px;
  height: 70px;

  object-fit: cover;

  border-radius: 10px;
}

.cart-item h4 {
  font-size: 13px;

  margin-bottom: 5px;
}

.cart-item-price {
  font-size: 12px;

  color: var(--primary);

  font-weight: 600;
}

.quantity-controls {
  display: flex;

  align-items: center;

  gap: 8px;

  margin-top: 8px;
}

.quantity-controls button {
  width: 24px;
  height: 24px;

  border: 1px solid var(--border);

  background: white;

  border-radius: 5px;
}

.remove-item {
  color: #ef4444;

  border: none;

  background: transparent;
}

.cart-footer {
  padding: 20px;

  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;

  justify-content: space-between;

  font-size: 18px;

  margin-bottom: 15px;
}

.checkout-btn {
  width: 100%;
}

/* =====================================================
   MODAL
===================================================== */

.modal-overlay {
  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.65);

  z-index: 2500;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 20px;

  opacity: 0;

  visibility: hidden;

  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  background: white;

  width: min(800px, 100%);

  max-height: 90vh;

  overflow-y: auto;

  border-radius: 20px;

  position: relative;

  transform: scale(0.9);

  transition: var(--transition);
}

.modal-overlay.active .product-modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;

  right: 20px;
  top: 20px;

  width: 38px;
  height: 38px;

  border: none;

  border-radius: 50%;

  background: white;

  box-shadow: var(--shadow);

  z-index: 2;
}

.modal-product {
  display: grid;

  grid-template-columns: 1fr 1fr;
}

.modal-product img {
  height: 450px;

  object-fit: cover;

  border-radius: 20px 0 0 20px;
}

.modal-info {
  padding: 50px 35px;
}

.modal-info h2 {
  font-size: 30px;

  margin: 10px 0;
}

.modal-info p {
  color: var(--gray);

  margin: 20px 0;
}

.modal-price {
  color: var(--primary);

  font-size: 25px;

  font-weight: 700;

  margin-bottom: 25px;
}

/* =====================================================
   TOAST
===================================================== */

.toast {
  position: fixed;

  right: 25px;
  bottom: 25px;

  background: #171717;

  color: white;

  padding: 15px 20px;

  border-radius: 10px;

  display: flex;

  align-items: center;

  gap: 10px;

  z-index: 5000;

  transform: translateY(100px);

  opacity: 0;

  transition: var(--transition);
}

.toast.show {
  transform: translateY(0);

  opacity: 1;
}

.toast i {
  color: #22c55e;
}

/* =====================================================
   SCROLL REVEAL
===================================================== */

.reveal {
  opacity: 0;

  transform: translateY(40px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.show {
  opacity: 1;

  transform: translateY(0);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1000px) {
  .features-grid,
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-container {
    grid-template-columns: 1fr;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    max-width: 700px;
    margin: auto;
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .about-content {
    text-align: center;
  }

  .about-stats {
    justify-content: center;
  }

  .newsletter-box {
    flex-direction: column;

    text-align: center;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .navbar {
    position: fixed;

    top: 75px;
    left: 0;

    width: 100%;

    background: white;

    flex-direction: column;

    padding: 25px;

    gap: 20px;

    transform: translateY(-150%);

    opacity: 0;

    transition: var(--transition);

    box-shadow: var(--shadow);
  }

  .navbar.active {
    transform: translateY(0);

    opacity: 1;
  }

  .menu-btn {
    display: block;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-image img {
    height: 400px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-top {
    align-items: flex-start;

    flex-direction: column;

    gap: 20px;
  }

  .newsletter-box form {
    min-width: 0;

    width: 100%;

    flex-direction: column;
  }

  .promo-box {
    padding: 35px;

    flex-direction: column;

    align-items: flex-start;

    gap: 30px;
  }

  .promo-icon {
    align-self: flex-end;
  }

  .modal-product {
    grid-template-columns: 1fr;
  }

  .modal-product img {
    height: 300px;

    border-radius: 20px 20px 0 0;
  }

  .modal-info {
    padding: 30px;
  }
}

@media (max-width: 520px) {
  .nav-actions {
    gap: 3px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-image img {
    height: 300px;
  }

  .hero-circle {
    width: 220px;
    height: 220px;

    right: -20px;
  }

  .floating-card {
    left: 10px;

    bottom: 15px;
  }

  .features-grid,
  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .about-content h2 {
    font-size: 35px;
  }

  .about-stats {
    gap: 25px;
  }

  .promo-box h2 {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .product-image img {
    height: 280px;
  }

  .toast {
    left: 15px;
    right: 15px;
    bottom: 15px;
  }
}

/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    /* animation-duration: 0.01ms !important; */
    transition-duration: 0.01ms !important;
  }
}
