:root { 
  --primary:#d9308e; 
  --secondary:#ff6b98; 
  --accent:#ffd700; 
  --dark:#2a2a2a; 
  --light:#ffffff; 
  --transition-speed:.3s; 
}

* {
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins','Rubik','Nunito Sans',sans-serif;
}

body {
  background:var(--light);
  color:var(--dark);
  line-height:1.6;
  padding-top:100px;
}

.container {
  max-width:100%;
  margin:0;
  padding:15px;
}

.sticky-header {
  position:fixed;
  top:0;
  left:0;
  width:100%;
  background:#fff;
  box-shadow:0 2px 5px rgba(0,0,0,.1);
  z-index:1000;
  display:flex;
  flex-direction:column;
  align-items:center;
  height:90px;
}

.notice {
  background-color:var(--primary);
  color:#fff;
  padding:4px 40px;
  text-align:center;
  font-size:.8rem;
  font-weight:500;
  line-height:1.2;
  width:100%;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}

.notice-arrow {
  width:10px;
  height:10px;
  background:var(--primary);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:.5rem;
  cursor:pointer;
  position:absolute;
}

.notice-arrow.left {
  left:15px;
}

.notice-arrow.right {
  right:15px;
}

.header-main {
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:100%;
  padding:8px 15px;
  height:60px;
}

.navbar-brand {
  flex:1;
  display:flex;
  justify-content:center;
  align-items:center;
}

.navbar-brand img {
  height:60px;
  width:auto;
}

.header-icons {
  display:flex;
  align-items:center;
  gap:15px;
}

.header-icons img {
  width:28px;
  height:28px;
  cursor:pointer;
}

.search-form {
  position:fixed;
  top:90px;
  left:0;
  width:100%;
  background:#fff;
  padding:10px;
  box-shadow:0 2px 5px rgba(0,0,0,.1);
  z-index:999;
  display:none;
}

.search-form input {
  width:100%;
  padding:8px 40px 8px 15px;
  border-radius:20px;
  border:1px solid #ddd;
  font-size:.8rem;
  transition:all var(--transition-speed) ease;
}

.search-form input:focus {
  outline:none;
  border-color:var(--primary);
  box-shadow:0 0 5px rgba(217,48,142,.3);
}

.search-form button {
  position:absolute;
  right:15px;
  top:50%;
  transform:translateY(-50%);
  background:none;
  border:none;
  color:var(--primary);
  font-size:.9rem;
  cursor:pointer;
}

h1, h2 {
  color:var(--primary);
  font-weight:900;
  text-align:center;
}

h1 {
  font-size:2rem;
  margin:1.5rem 0;
}

h2 {
  font-size:1.5rem;
  margin-bottom:1.5rem;
}

.product-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:20px;
  padding:15px 0;
}

.product-card {
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 5px 15px rgba(0,0,0,.08);
  transition:all var(--transition-speed) ease-out;
  position:relative;
  border:1px solid #eee;
}

.product-card:hover {
  transform:translateY(-5px);
  box-shadow:0 8px 25px rgba(0,0,0,.15);
  border:1px solid var(--primary);
}

.product-badge {
  position:absolute;
  top:10px;
  right:10px;
  display:inline-block;
  padding:6px 16px;
  font-size:12px;
  font-weight:700;
  color:#fff;
  border-radius:30px;
  background:linear-gradient(135deg,#f5c26b,#d4a857);
  z-index:2;
}

.swiper {
  width:100%;
  height:300px;
  border-bottom:1px solid #eee;
  overflow:hidden;
  position:relative;
}

.swiper-slide {
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f9f9f9;
  padding:10px;
}

.swiper-slide img {
  width:100%;
  height:100%;
  object-fit:contain;
  max-height:280px;
  transition:transform .3s ease;
}

.swiper-slide img:hover {
  transform:scale(1.05);
}

.swiper-pagination {
  position:absolute;
  bottom:10px;
  left:0;
  width:100%;
  text-align:center;
  z-index:10;
}

.swiper-pagination-bullet {
  width:8px;
  height:8px;
  border-radius:50%;
  background:#ccc;
  margin:0 4px;
  opacity:.9;
}

.swiper-pagination-bullet-active {
  background:var(--primary);
}

.product-details {
  padding:10px;
}

.product-title {
  font-size:1.2rem;
  margin-bottom:4px;
  color:var(--primary);
  font-weight:700;
  text-align:left;
}

.product-subtitle {
  color:#666;
  font-size:.85rem;
  margin-bottom:8px;
  text-align:left;
}

.price-container {
  display:flex;
  align-items:center;
  margin-bottom:10px;
  gap:6px;
}

.free-label {
  background:#ff6b98;
  color:#fff;
  padding:4px 7px;
  border-radius:4px;
  font-size:.6rem;
  font-weight:700;
  text-transform:uppercase;
}

.original-price {
  position:relative;
  font-weight:700;
  color:#888;
  font-size:.8rem;
}

.original-price::after {
  content:'';
  position:absolute;
  top:50%;
  left:0;
  width:100%;
  height:1px;
  background:red;
  transform:translateY(-50%);
}

.cta-button {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  background:var(--primary);
  color:#fff;
  border:none;
  padding:11px;
  font-size:1rem;
  border-radius:6px;
  cursor:pointer;
  transition:all var(--transition-speed) ease;
  text-decoration:none;
  font-weight:700;
  margin-top:8px;
}

.cta-button:hover {
  background:var(--secondary);
}

.cta-button i {
  margin-left:8px;
}

.testimonial-section {
  background:#fff;
  padding:20px;
  border-radius:12px;
  margin:25px 0;
  box-shadow:0 5px 15px rgba(0,0,0,.05);
}

footer {
  background:var(--primary);
  text-align:center;
  padding:20px;
  color:#fff;
  margin-top:30px;
}

.sidebar {
  position:fixed;
  top:0;
  right:-250px;
  width:250px;
  height:100%;
  background:#fff;
  box-shadow:-2px 0 5px rgba(0,0,0,.2);
  z-index:2000;
  transition:right .3s ease;
}

.sidebar.active {
  right:0;
}

.sidebar ul {
  list-style:none;
  padding:20px;
  margin-top:60px;
}

.sidebar ul li {
  margin-bottom:16px;
}

.sidebar ul li a {
  color:var(--primary);
  text-decoration:none;
  font-size:.85rem;
  font-weight:600;
}

.close-sidebar {
  position:absolute;
  top:20px;
  right:20px;
  font-size:1.2rem;
  cursor:pointer;
  color:#var(--primary);
}

.full-width-image {
  width:100%;
  height:auto;
  display:block;
  margin:0;
  padding:0;
  margin-top:-20px;
}

.full-width-banner {
  width:100%;
  margin:0;
  padding:0;
}

.flipdown-container {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  margin:20px auto;
  padding:10px;
  background:#fff;
}

.flipdown-container h2 {
  font-size:1.4rem;
  margin-bottom:10px;
  color:var(--primary);
  text-transform:uppercase;
  font-weight:800;
}

.flipdown {
  display:inline-block;
  transform:scale(1.1);
}

.product-modal, .steps-modal {
  display:none;
  position:fixed;
  z-index:10000;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background-color:rgba(0,0,0,.5);
  justify-content:center;
  align-items:center;
  opacity:0;
  transition:opacity .3s ease;
}

.product-modal.active, .steps-modal.active {
  opacity:1;
}

.modal-content {
  background:#fff;
  padding:20px;
  border-radius:15px;
  width:90%;
  max-width:520px;
  max-height:80vh;
  overflow-y:auto;
  position:relative;
  box-shadow:0 10px 30px rgba(0,0,0,.3);
}

.close-modal, .close-steps-modal {
  color:#999;
  font-size:26px;
  font-weight:700;
  cursor:pointer;
  position:absolute;
  top:10px;
  right:15px;
}

.color-options {
  margin:12px 0;
  text-align:center;
}

.color-label {
  display:block;
  margin-bottom:8px;
  font-weight:700;
  color:#333;
}

.color-option {
  display:inline-block;
  width:26px;
  height:26px;
  border-radius:50%;
  margin:4px;
  cursor:pointer;
  border:3px solid transparent;
}

.color-option.selected {
  border-color:#d9308e;
}

.skin-options {
  margin:12px 0;
}

.skin-option {
  display:inline-block;
  padding:7px 14px;
  margin:4px;
  background:#f0f0f0;
  border-radius:18px;
  cursor:pointer;
  border:2px solid transparent;
  font-size:.85rem;
}

.skin-option.selected {
  background:#d9308e;
  color:#fff;
  border-color:#d9308e;
}

.recent-purchases {
  background:#f8f9fa;
  padding:12px;
  border-radius:8px;
  margin:12px 0;
  font-size:.9rem;
  color:#666;
}

.purchase-notification {
  position:fixed;
  top:100px;
  right:20px;
  background:#4CAF50;
  color:#fff;
  padding:12px 16px;
  border-radius:8px;
  box-shadow:0 4px 12px rgba(0,0,0,.2);
  z-index:10001;
  display:none;
}

.cpa-layer {
  display:none;
  position:fixed;
  z-index:10002;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,.7);
  justify-content:center;
  align-items:center;
  opacity:0;
  transition:opacity .3s ease;
}

.cpa-layer.active {
  opacity:1;
}

.cpa-form {
  background:#fff;
  padding:24px;
  border-radius:14px;
  width:90%;
  max-width:400px;
  text-align:center;
  box-shadow:0 10px 30px rgba(0,0,0,.3);
}

.locker-overlay {
  display:none;
  position:fixed;
  z-index:10003;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
  justify-content:center;
  align-items:center;
  text-align:center;
  color:#fff;
}

.locker-content {
  background:#fff;
  color:#333;
  padding:32px;
  border-radius:18px;
  max-width:500px;
  width:90%;
  box-shadow:0 20px 40px rgba(0,0,0,.3);
}

#stockCounter {
  background:linear-gradient(135deg,#ff6b6b,#ee5a24);
  color:#fff;
  padding:10px 18px;
  border-radius:25px;
  font-weight:700;
  font-size:1rem;
  margin-bottom:16px;
  display:inline-block;
}

#stockAlert {
  background:#fff3cd;
  border:1px solid #ffeaa7;
  border-left:4px solid #fdcb6e;
  padding:12px;
  border-radius:8px;
  margin:16px 0;
}

/* Enhanced Steps Modal styles */
.steps-modal {
  display:none;
  position:fixed;
  z-index:10000;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,.55);
  justify-content:center;
  align-items:center;
  opacity:0;
  transition:opacity .25s;
}

.steps-modal.active {
  opacity:1;
}

.steps-modal .steps-modal-content {
  width:92%;
  max-width:520px;
  background:#fff;
  border-radius:16px;
  padding:18px 16px 16px;
  position:relative;
  box-shadow:0 15px 40px rgba(0,0,0,.25);
}

.steps-modal h3 {
  margin:0 0 6px 0;
  font-weight:900;
  color:#ff2b86;
  text-align:left;
  font-size:1.05rem;
}

.steps-sub {
  color:#777;
  margin:-2px 0 10px 0;
  font-size:.86rem;
}

.steps-timeline {
  position:relative;
  margin:10px 0 14px 0;
}

.steps-rail {
  position:absolute;
  left:23px;
  top:0;
  bottom:0;
  width:4px;
  background:#eee;
  border-radius:2px;
}

.steps-progress {
  position:absolute;
  left:23px;
  top:0;
  width:4px;
  height:0;
  background:linear-gradient(180deg,#ff6b98,#d9308e);
  border-radius:2px;
  transition:height .45s ease;
}

.steps-list {
  list-style:none;
  margin:0;
  padding:0;
}

.steps-list li {
  position:relative;
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:10px 10px 10px 48px;
  border-radius:10px;
}

.steps-list li + li {
  margin-top:2px;
}

.step-num {
  position:absolute;
  left:10px;
  top:10px;
  width:26px;
  height:26px;
  border-radius:50%;
  background:#d7d7d7;
  color:#fff;
  font-weight:900;
  font-size:.85rem;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all .3s;
}

.step-text {
  color:#333;
  font-size:.93rem;
  line-height:1.35;
}

.step-hint {
  display:block;
  color:#999;
  font-size:.8rem;
  margin-top:3px;
}

.steps-list li.active .step-num {
  background:linear-gradient(135deg,#ff6b98,#d9308e);
  box-shadow:0 0 0 4px rgba(217,48,142,.15), 0 6px 14px rgba(217,48,142,.25);
}

.steps-list li.completed .step-num {
  background:#22c55e;
}

.steps-list li.active .step-text {
  color:#111;
}

.confirm-button {
  width:100%;
  padding:12px 14px;
  border:none;
  border-radius:10px;
  cursor:pointer;
  background:linear-gradient(135deg,#ff6b98,#d9308e);
  color:#fff;
  font-weight:800;
  font-size:1rem;
}

.confirm-button:active {
  transform:scale(.99);
}

/* Product modal compaction and skin title */
.product-modal .swiper {
  height:220px;
}

.product-modal .swiper-slide img {
  max-height:200px;
  object-fit:contain;
}

.skin-title {
  margin:8px 0 4px 0;
  font-weight:800;
  color:#d9308e;
  font-size:1rem;
}

/* Extra tip line in Next steps */
.steps-tip {
  background:#fff0f6;
  border:1px dashed #ff6b98;
  color:#d9308e;
  font-weight:700;
  padding:8px 10px;
  border-radius:10px;
  font-size:.86rem;
  margin:0 0 10px 0;
}

@media (max-width:768px) {
  .sticky-header {
    height:80px;
  }
  
  .notice {
    font-size:.7rem;
    height:25px;
    padding:4px 30px;
  }
  
  .navbar-brand img {
    height:52px;
  }
  
  .product-grid {
    grid-template-columns:1fr;
    gap:18px;
  }
  
  .swiper {
    height:260px;
  }
}
