/* ========== MODACIK.COM CLONE ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #E87830;
  --primary-dark: #D06820;
  --primary-light: #FFF3EC;
  --green: #4CAF50;
  --green-dark: #388E3C;
  --red: #E53935;
  --bg: #F4F6FA;
  --white: #fff;
  --text: #1A1A1A;
  --text-light: #666;
  --border: #E8E8E8;
  --shadow: 0 2px 12px rgba(0, 0, 0, .08);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased
}

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

/* HEADER */
.header {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1200px;
  z-index: 100;
  background: var(--white);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
  border-radius: 50px;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  color: #E94359;
  letter-spacing: -.5px;
}

.ig-icon {
  width: 32px;
  height: 32px;
  border: 2px solid #E1306C;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #E1306C;
  transition: opacity .2s
}

.ig-icon:hover {
  opacity: .7
}

/* HERO */
.hero {
  position: relative;
  background: linear-gradient(135deg, #FFF3EC, #FFE0CC, #FFEEDD);
  overflow: hidden;
  padding: 30px 20px;
  text-align: center
}

.hero-decor {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: .1;
  font-size: 50px
}

.hero h1 {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  position: relative;
  z-index: 1
}

.hero .price-tag {
  font-size: clamp(36px, 8vw, 60px);
  font-weight: 900;
  color: var(--primary-dark);
  position: relative;
  z-index: 1
}

.hero-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  transform: rotate(-5deg);
  z-index: 2
}

/* CAMPAIGN TABS */
.campaign-tabs {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 20px;
  overflow-x: auto;
  justify-content: center;
  margin-top: -50px;
  z-index: 10;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.campaign-tab {
  flex-shrink: 0;
  padding: 16px 24px;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: all .3s;
  background: var(--white);
  min-width: 220px;
  box-shadow: 0 4px 15px rgba(0,0,0,.08);
}

.campaign-tab.active {
  border-color: var(--primary);
}

.campaign-tab h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.campaign-tab p {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.campaign-tab .tab-price {
  font-size: 18px;
  font-weight: 900;
  color: #333;
}

/* CAMPAIGN INFO BAR */
.campaign-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--white);
  max-width: 1200px;
  margin: 0 auto 20px auto;
  border-top: 1px solid var(--border);
}

.campaign-info h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.info-price {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
}

.info-count {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 600;
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px
}

@media(min-width:768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px
  }
}

@media(min-width:1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto
  }
}

/* PRODUCT CARD */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .12)
}

.product-card.in-cart {
  border: 2px solid var(--primary)
}

.card-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f0f0f0
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s
}

.product-card:hover .card-img img {
  transform: scale(1.03)
}

.card-img .zoom-btn {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 2;
  opacity: .9
}

.card-img .zoom-btn:hover {
  opacity: 1
}

.card-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2
}

.card-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5)
}

.card-dots span.active {
  background: #fff
}

.card-badge {
  width: 100%;
  padding: 6px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px
}

.card-badge.orange {
  background: var(--primary)
}

.card-badge.green {
  background: var(--green)
}

.card-body {
  padding: 12px
}

.card-body h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
  flex-wrap: wrap
}

.social-proof .count {
  color: var(--primary);
  font-weight: 700
}

.card-meta {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 10px;
  line-height: 1.6
}

.btn-cart {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit
}

.btn-cart.add {
  background: var(--primary);
  color: #fff
}

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

.btn-cart.remove {
  background: var(--white);
  color: var(--text);
  border: 2px solid var(--border)
}

.btn-cart.remove:hover {
  border-color: var(--red);
  color: var(--red)
}

/* SELECTED PRODUCTS */
.section-box {
  background: var(--white);
  margin: 12px;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow)
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px
}

.section-title .icon {
  font-size: 22px
}

.selected-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 2px dashed var(--border);
  border-radius: 10px;
  margin-bottom: 10px
}

.selected-slot.filled {
  border-style: solid;
  border-color: var(--primary-light);
  background: var(--primary-light)
}

.slot-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 20px
}

.slot-img img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.slot-info {
  flex: 1
}

.slot-info h4 {
  font-size: 13px;
  font-weight: 600
}

.slot-info p {
  font-size: 11px;
  color: var(--text-light)
}

.slot-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px
}

.slot-btn.up {
  background: var(--primary-light);
  color: var(--primary)
}

.slot-btn.rm {
  background: #FEE;
  color: var(--red)
}

.campaign-warning {
  background: var(--primary-light);
  padding: 14px 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px
}

.warn-icon {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0
}

/* SIZE SELECTION */
.size-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px
}

.size-btn {
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  transition: all .2s;
  font-family: inherit
}

.size-btn:hover {
  border-color: var(--primary)
}

.size-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary)
}

/* CHECKOUT FORM */
.form-group {
  margin-bottom: 14px
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px
}

.req {
  color: var(--red)
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s;
  outline: none
}

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

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: #fff
}

textarea.form-input {
  resize: vertical;
  min-height: 80px
}

/* ORDER SUMMARY */
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border)
}

.summary-row:last-child {
  border-bottom: none
}

.summary-row.total {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  border-top: 2px solid var(--primary);
  padding-top: 14px;
  margin-top: 4px
}

.btn-order {
  width: 100%;
  padding: 16px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 16px;
  transition: all .2s;
  font-family: inherit;
  letter-spacing: .3px
}

.btn-order:hover {
  background: var(--green-dark)
}

.btn-order:disabled {
  background: #ccc;
  cursor: not-allowed
}

/* TRUST BADGES */
.trust-badges-wrapper {
  background: var(--primary-light);
  padding: 30px 12px;
  margin-top: 40px;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

@media(min-width:768px) {
  .trust-badges {
    grid-template-columns: repeat(4, 1fr)
  }
}

.trust-badge {
  text-align: center;
}

.trust-badge svg {
  margin-bottom: 12px;
}

.trust-badge h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}


/* TOAST */
.toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .15);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 200;
  max-width: 320px;
  transform: translateX(-120%);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  border-left: 4px solid var(--primary)
}

.toast.show {
  transform: translateX(0)
}

.toast-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px
}

.toast-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary)
}

.toast-time {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400
}

.toast-name {
  font-size: 13px;
  font-weight: 600
}

.toast-city {
  font-size: 12px;
  color: var(--text-light)
}

.toast-product {
  font-size: 11px;
  color: var(--text-light)
}

/* ZOOM MODAL */
.zoom-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center
}

.zoom-modal.show {
  display: flex
}

.zoom-modal img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px
}

.zoom-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, .15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center
}

.zoom-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center
}

.zoom-nav.prev {
  left: 16px
}

.zoom-nav.next {
  right: 16px
}

/* CONFIRMATION */
.confirmation {
  text-align: center;
  padding: 40px 20px;
  max-width: 500px;
  margin: 0 auto
}

.confirmation .check {
  font-size: 64px;
  margin-bottom: 16px
}

.confirmation h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px
}

.confirmation p {
  color: var(--text-light);
  margin-bottom: 20px
}

.tracking-box {
  background: var(--primary-light);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px
}

.tracking-box .label {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 4px
}

.tracking-box .number {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 1px
}

/* RESPONSIVE */
@media(max-width:500px) {
  .form-row {
    grid-template-columns: 1fr
  }

  .campaign-tabs {
    justify-content: flex-start
  }
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.fade-in {
  animation: fadeIn .3s ease
}