/* Main styles */
:root {
  --primary: #007bff;
  --primary-dark: #0056b3;
  --accent: #ffb300;
  --bg: #f8f9fa;
  --white: #fff;
  --gray: #e9ecef;
  --shadow: 0 2px 8px rgba(0,0,0,0.04);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: #222;
  line-height: 1.6;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.main-header {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1.2rem 0;
  margin-bottom: 0;
}
.nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}
.logo span {
  color: var(--accent);
}
nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
nav a.active,
nav a:hover {
  color: var(--accent);
}
nav a.active::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
  position: absolute;
  left: 0;
  bottom: -4px;
}
.hero {
  background: linear-gradient(90deg, var(--primary) 60%, var(--accent) 100%);
  color: var(--white);
  padding: 3rem 0 2rem 0;
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.hero-text {
  flex: 1 1 350px;
  min-width: 300px;
}
.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.cta-btn:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px) scale(1.04);
}
.hero-img {
  flex: 1 1 300px;
  text-align: right;
}
.hero-img img {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.10));
}
.features {
  background: var(--white);
  padding: 2.5rem 0 2rem 0;
}
.features-grid {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  flex-wrap: wrap;
}
.feature {
  flex: 1 1 200px;
  background: var(--gray);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.feature img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.7rem;
}
.feature h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 1.2rem;
}
.feature p {
  color: #444;
  font-size: 1rem;
}
.featured-products {
  padding: 2.5rem 0 2rem 0;
}
.featured-products h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
  font-size: 2rem;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  min-height: 480px;
}
.product-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.product-card img {
  width: 100%;
  max-width: 140px;
  margin-bottom: 1rem;
  border-radius: 8px;
}
.product-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.product-card p {
  color: #444;
  font-size: 0.98rem;
  margin-bottom: 0.7rem;
  text-align: center;
  flex: unset;
}
.product-card .price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
  min-width: unset;
}
.product-card .card-btns {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  align-items: center;
  margin-top: auto;
  justify-content: unset;
}
.product-card .cta-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 0.7rem 1.7rem;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.product-card .cta-btn:hover {
  background: #e6a800;
  color: #fff;
}
.product-card .add-to-cart-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 0.7rem 1.7rem;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 auto;
  box-shadow: none;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  width: auto;
  max-width: 220px;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  white-space: nowrap;
}
.product-card .add-to-cart-btn svg {
  margin: 0;
  min-width: 20px;
}
.product-card .add-to-cart-btn:hover {
  background: var(--primary-dark);
  color: #fff;
}
.main-footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 1.2rem 0;
  margin-top: 2rem;
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-img {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  .features-grid {
    flex-direction: column;
    gap: 1.2rem;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 0.5rem;
  }
  .logo {
    font-size: 1.3rem;
  }
  .hero-text h2 {
    font-size: 1.5rem;
  }
  .featured-products h2 {
    font-size: 1.3rem;
  }
  .products-grid {
    gap: 1rem;
  }
  nav a {
    margin-left: 0.7rem;
    font-size: 0.98rem;
  }
}

.add-to-cart-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 0.7rem 1.7rem;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 auto;
  box-shadow: none;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  width: auto;
  max-width: 220px;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  white-space: nowrap;
}
.add-to-cart-btn svg {
  margin: 0;
  min-width: 20px;
}
.add-to-cart-btn:hover {
  background: var(--primary-dark);
  color: #fff;
}

.cart-confirmation {
  position: fixed;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-30px) scale(0.95);
  background: linear-gradient(90deg, #28a745 70%, var(--primary) 100%);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 40px;
  font-size: 1.15rem;
  font-weight: 600;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
  opacity: 0;
  z-index: 9999;
  transition: opacity 0.35s, transform 0.35s cubic-bezier(.4,2,.6,1);
  pointer-events: none;
  letter-spacing: 0.5px;
}
.cart-confirmation.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1.04);
}

.cart-items {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.cart-item {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1.2rem 1rem;
  gap: 1.2rem;
  position: relative;
}
.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.cart-item-details {
  flex: 1 1 200px;
}
.cart-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.3rem;
}
.cart-item-price {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.cart-item-qty button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.cart-item-qty button:hover {
  background: var(--accent);
}
.cart-item-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1.5px solid #e74c3c;
  color: #e74c3c;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  padding: 0.35rem 1.1rem 0.35rem 0.8rem;
  margin-top: 0.8rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s;
  box-shadow: 0 1px 4px rgba(231,76,60,0.04);
}
.cart-item-remove svg {
  margin-right: 0.2rem;
}
.cart-item-remove:hover {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}
.cart-item-remove:hover svg {
  stroke: #fff;
}
.cart-summary {
  margin-top: 2.5rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1.5rem 1rem;
  text-align: right;
  font-size: 1.15rem;
}
.cart-summary .total {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.7rem;
}
.checkout-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 0.7rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1.2rem;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.checkout-btn:hover {
  background: var(--primary-dark);
  color: #fff;
}
.empty-cart {
  text-align: center;
  color: #888;
  font-size: 1.2rem;
  margin: 3rem 0 2rem 0;
}
@media (max-width: 600px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 1rem 0.5rem;
  }
  .cart-item img {
    width: 60px;
    height: 60px;
  }
  .cart-summary {
    font-size: 1rem;
    padding: 1rem 0.5rem;
  }
}

.cart-badge {
  display: inline-block;
  min-width: 22px;
  height: 22px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50%;
  text-align: center;
  line-height: 22px;
  margin-left: 0.3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  vertical-align: middle;
  transition: background 0.2s, transform 0.2s;
  position: relative;
  top: -2px;
  padding: 0 6px;
  animation: badge-pop 0.3s;
}
@keyframes badge-pop {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.products-controls {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.products-controls label {
  font-weight: 500;
  color: var(--primary);
}
.products-controls select {
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--gray);
  font-size: 1rem;
  background: var(--white);
  color: #222;
  outline: none;
  transition: border 0.2s;
}
.products-controls select:focus {
  border: 1.5px solid var(--primary);
}
.products-controls input[type="text"] {
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--gray);
  font-size: 1rem;
  background: var(--white);
  color: #222;
  outline: none;
  transition: border 0.2s;
  min-width: 180px;
}
.products-controls input[type="text"]:focus {
  border: 1.5px solid var(--primary);
}

.product-details-page {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.product-details-img {
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 380px;
  text-align: center;
}
.product-details-img img {
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.product-details-info {
  flex: 2 1 350px;
  min-width: 260px;
}
.product-details-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.7rem;
}
.product-details-category {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.product-details-price {
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.product-details-desc {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1.5rem;
}
@media (max-width: 900px) {
  .product-details-page {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0.7rem;
  }
  .product-details-img img {
    max-width: 100%;
  }
}

button, .cta-btn, .add-to-cart-btn, .checkout-btn {
  box-shadow: none !important;
}

.checkout-form {
  max-width: 420px;
  margin: 2.5rem auto 0 auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.2rem;
}
.form-group input,
.form-group textarea {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1.5px solid var(--gray);
  font-size: 1rem;
  background: var(--bg);
  color: #222;
  outline: none;
  transition: border 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border: 1.5px solid var(--primary);
}
@media (max-width: 600px) {
  .checkout-form {
    padding: 1rem 0.5rem;
  }
}

.order-summary {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.2rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.order-summary h4 {
  color: var(--primary);
  margin-bottom: 0.7rem;
}
.order-summary ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}
.order-summary li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.order-summary .summary-label {
  color: #444;
}
.order-summary .summary-value {
  color: var(--primary);
  font-weight: 600;
}
.order-summary .summary-total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 1rem;
  text-align: right;
}
.form-row {
  display: flex;
  gap: 1.2rem;
}
.form-row .form-group {
  flex: 1 1 0;
}
.payment-success {
  color: #28a745;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  background: #eafbe7;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin-top: 1rem;
}

.thankyou-box {
  max-width: 420px;
  margin: 4rem auto 0 auto;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  text-align: center;
}
.thankyou-box h2 {
  color: var(--primary);
  margin-bottom: 1.2rem;
}
.thankyou-box p {
  color: #444;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.product-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 1rem;
  justify-content: center;
}
.gallery-thumb {
  border: 2px solid #eee;
  transition: border 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.gallery-thumb:hover {
  border: 2px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.img-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.7);
}
.img-modal-content {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  background: #fff;
}
.img-modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #fff;
  font-size: 2.2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}
