:root {
  --store-primary: #3399fe;
  --store-dark: #202135;
  --store-muted: #6b7280;
  --store-border: #e5e7eb;
  --store-surface: #ffffff;
  --store-soft: #f5f9ff;
  --store-success: #198754;
}

body {
  color: #4b5563;
}

.store-navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
}

.store-navbar-brand img {
  width: auto;
  object-fit: contain;
}

.store-navbar-brand .drg-logo {
  height: 54px;
}

.store-navbar-brand .qurus-logo {
  height: 48px;
}

.store-navbar-brand-text {
  color: var(--store-primary);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
  white-space: nowrap;
}

.cart-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(51, 153, 254, .25);
  border-radius: 50%;
  color: var(--store-dark);
  background: #fff;
  transition: .2s ease;
}

.cart-nav-link:hover {
  color: #fff;
  background: var(--store-primary);
  border-color: var(--store-primary);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  border: 2px solid #fff;
}

.shop-hero-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.shop-trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 24px;
}

.shop-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #4b5563;
  font-size: .95rem;
}

.shop-trust-item i {
  color: var(--store-primary);
}

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--store-border);
  border-radius: 18px;
  background: var(--store-surface);
  box-shadow: 0 14px 38px rgba(31, 41, 55, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(31, 41, 55, .13);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8fafc;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

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

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--store-success);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
  font-size: .8rem;
  font-weight: 700;
}

.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.product-body h2 {
  font-size: 1.4rem;
  margin-bottom: 9px;
}

.product-description {
  color: var(--store-muted);
  min-height: 48px;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 8px;
  color: #4b5563;
}

.product-features i {
  color: var(--store-primary);
  margin-top: 5px;
  font-size: .75rem;
}

.product-price {
  color: var(--store-dark);
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 700;
}

.product-price small {
  font-family: 'Open Sans', sans-serif;
  font-size: .78rem;
  color: var(--store-muted);
  font-weight: 400;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
}

.quantity-row label {
  margin: 0;
  color: var(--store-dark);
  font-weight: 600;
}

.quantity-input {
  width: 82px;
  text-align: center;
  border-radius: 10px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.product-actions .btn {
  border-radius: 12px;
  padding: 11px 14px;
}

.btn-outline-store {
  border: 1px solid var(--store-primary);
  color: var(--store-primary);
  background: #fff;
}

.btn-outline-store:hover {
  color: #fff;
  background: var(--store-primary);
}

.store-info-card {
  height: 100%;
  padding: 26px;
  border: 1px solid var(--store-border);
  border-radius: 16px;
  background: #fff;
}

.store-info-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--store-primary);
  background: var(--store-soft);
  margin-bottom: 18px;
}

.cart-layout,
.checkout-layout {
  padding-top: 70px;
  padding-bottom: 90px;
}

.cart-panel,
.checkout-panel,
.order-summary-card {
  border: 1px solid var(--store-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(31, 41, 55, .07);
}

.cart-panel,
.checkout-panel {
  padding: 26px;
}

.cart-line-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--store-border);
}

.cart-line-item:first-child {
  padding-top: 0;
}

.cart-line-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cart-line-image {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
  background: #f8fafc;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 38px 56px 38px;
  border: 1px solid var(--store-border);
  border-radius: 10px;
  overflow: hidden;
}

.quantity-control button,
.quantity-control input {
  height: 38px;
  border: 0;
  background: #fff;
  text-align: center;
}

.quantity-control button {
  font-weight: 700;
  color: var(--store-primary);
}

.quantity-control button:hover {
  background: var(--store-soft);
}

.quantity-control input {
  width: 56px;
  border-left: 1px solid var(--store-border);
  border-right: 1px solid var(--store-border);
  -moz-appearance: textfield;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.order-summary-card {
  position: sticky;
  top: 110px;
  padding: 26px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
}

.summary-total {
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--store-border);
  font-size: 1.15rem;
  color: var(--store-dark);
}

.checkout-section + .checkout-section {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--store-border);
}

.checkout-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.checkout-section-title span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--store-primary);
  color: #fff;
  font-weight: 700;
}

.delivery-option {
  display: block;
  padding: 18px;
  border: 1px solid var(--store-border);
  border-radius: 14px;
  cursor: pointer;
}

.delivery-option:has(input:checked) {
  border-color: var(--store-primary);
  box-shadow: 0 0 0 3px rgba(51, 153, 254, .10);
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--store-border);
}

.checkout-item-image-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
}

.checkout-item-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.checkout-item-image-wrap span {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--store-dark);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
}

.secure-payment-note {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #f0f9ff;
  color: #374151;
  font-size: .9rem;
}

.payment-result-card {
  max-width: 660px;
  margin: 70px auto;
  padding: 42px;
  text-align: center;
  border: 1px solid var(--store-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(31, 41, 55, .1);
}

.payment-result-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 2rem;
  margin-bottom: 22px;
}

.payment-result-icon.success {
  color: #198754;
  background: #eaf7f0;
}

.payment-result-icon.failed {
  color: #dc3545;
  background: #fdecef;
}

.payment-result-icon.pending {
  color: #b7791f;
  background: #fff7df;
}

@media (max-width: 1199.98px) {
  .store-navbar-brand-text {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .store-navbar-brand {
    min-width: auto;
  }

  .store-navbar-brand .drg-logo {
    height: 46px;
  }

  .store-navbar-brand .qurus-logo {
    height: 42px;
  }

  .cart-nav-link {
    margin: 10px 0;
  }

  .order-summary-card {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .product-actions {
    grid-template-columns: 1fr;
  }

  .cart-panel,
  .checkout-panel,
  .order-summary-card {
    padding: 18px;
  }

  .cart-line-item {
    grid-template-columns: 82px 1fr;
    gap: 14px;
  }

  .cart-line-image {
    width: 82px;
    height: 82px;
  }

  .payment-result-card {
    margin: 35px 0;
    padding: 28px 20px;
  }
}
