:root {
  --gmc-primary: #0f766e;
  --gmc-primary-dark: #115e59;
  --gmc-secondary: #0b132b;
  --gmc-surface: #ffffff;
  --gmc-soft: #f4f7f6;
  --gmc-border: #d7e1de;
  --gmc-text: #16211f;
  --gmc-muted: #56706c;
  --gmc-btn-bg: rgba(59, 130, 246, 0.14);
  --gmc-btn-border: rgba(59, 130, 246, 0.28);
  --gmc-btn-hover-bg: rgba(249, 115, 22, 0.14);
  --gmc-btn-hover-border: rgba(249, 115, 22, 0.3);
}

.gmc-container,
.gmc-card,
.gmc-single-info,
.gmc-checkout,
.gmc-cart,
.gmc-order-summary {
  color: var(--gmc-text);
}

.gmc-checkout-form p {
  margin: 0 0 12px;
}

.gmc-checkout-form label {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: #223835;
  margin-bottom: 6px;
}

.gmc-products-search-input,
.gmc-checkout-form input[type="text"],
.gmc-checkout-form input[type="email"],
.gmc-checkout-form input[type="tel"],
.gmc-checkout-form textarea,
.gmc-checkout-form select {
  width: 100%;
  border: 1px solid var(--gmc-border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--gmc-text);
  font-size: 14px;
  line-height: 1.35;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gmc-checkout-form textarea {
  min-height: 110px;
  resize: vertical;
}

.gmc-products-search-input::placeholder,
.gmc-checkout-form input::placeholder,
.gmc-checkout-form textarea::placeholder {
  color: rgba(86, 112, 108, 0.75);
}

.gmc-products-search-input:focus,
.gmc-checkout-form input[type="text"]:focus,
.gmc-checkout-form input[type="email"]:focus,
.gmc-checkout-form input[type="tel"]:focus,
.gmc-checkout-form textarea:focus,
.gmc-checkout-form select:focus {
  border-color: rgba(15, 118, 110, 0.75);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.gmc-checkout-form input:disabled,
.gmc-checkout-form textarea:disabled,
.gmc-checkout-form select:disabled,
.gmc-products-search-input:disabled {
  background: #f5f7f7;
  color: rgba(22, 33, 31, 0.65);
  cursor: not-allowed;
}

.gmc-checkout-form input[type="radio"],
.gmc-checkout-form input[type="checkbox"] {
  transform: translateY(1px);
}

.gmc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.gmc-card {
  border: 1px solid var(--gmc-border);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcfb 100%);
  box-shadow: 0 8px 22px rgba(18, 52, 47, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.gmc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(18, 52, 47, 0.12);
}

.gmc-thumb {
  border-radius: 12px;
  overflow: hidden;
  background: #edf5f3;
  cursor: pointer;
}

.gmc-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gmc-title {
  margin: 12px 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--gmc-text);
  line-height: 1.35;
}

.gmc-title-btn {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.gmc-title-btn:hover {
  text-decoration: underline;
}

.gmc-price {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--gmc-primary-dark);
}

.gmc-prices {
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.gmc-price-sale {
  margin-bottom: 0;
  color: #d21616;
}

.gmc-price-regular {
  font-size: 15px;
  font-weight: 700;
  color: #6b7280;
  text-decoration: line-through;
}

.gmc-discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e11d48;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.25);
}

.gmc-free-shipping-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #16a34a;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.25);
}

.gmc-preview {
  margin-bottom: 12px;
  color: var(--gmc-muted);
  font-size: 14px;
  line-height: 1.55;
  min-height: 44px;
}

.gmc-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gmc-card-qty-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  flex: 0 0 110px;
  border: 1px solid var(--gmc-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.gmc-qty-btn {
  border: 0;
  background: #edf5f3;
  color: #1f3f3a;
  font-size: 18px;
  font-weight: 700;
  height: 38px;
  cursor: pointer;
}

.gmc-qty-btn:hover {
  background: #dfece8;
}

.gmc-card-qty {
  border: 0;
  text-align: center;
  font-weight: 700;
  color: #000 !important;
  -webkit-text-fill-color: #000;
  opacity: 1;
  width: 100%;
  height: 38px;
  outline: none;
}

.gmc-qty-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--gmc-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.gmc-qty-inline input {
  border: 0;
  text-align: center;
  font-weight: 700;
  color: #000 !important;
  -webkit-text-fill-color: #000;
  opacity: 1;
  font-size: 16px;
  width: 100%;
  height: 38px;
  outline: none;
}

.gmc-card-qty,
.gmc-single-qty,
.gmc-qty {
  -webkit-appearance: auto;
  appearance: auto;
}

.gmc-card-qty::-webkit-inner-spin-button,
.gmc-card-qty::-webkit-outer-spin-button,
.gmc-single-qty::-webkit-inner-spin-button,
.gmc-single-qty::-webkit-outer-spin-button,
.gmc-qty::-webkit-inner-spin-button,
.gmc-qty::-webkit-outer-spin-button {
  -webkit-appearance: inner-spin-button;
  opacity: 1;
}

.gmc-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--gmc-btn-bg);
  border: 1px solid var(--gmc-btn-border);
  color: #000 !important;
  cursor: pointer;
  height: 38px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.12);
}

.gmc-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18), 0 8px 18px rgba(2, 132, 199, 0.12);
}

a.gmc-btn,
a.gmc-btn:visited,
.gmc-actions a.gmc-btn,
.gmc-actions a.gmc-btn:visited {
  color: #000 !important;
}

a.gmc-btn:hover,
a.gmc-btn:active,
a.gmc-btn:focus,
.gmc-actions a.gmc-btn:hover,
.gmc-actions a.gmc-btn:active,
.gmc-actions a.gmc-btn:focus {
  color: #000 !important;
}

.gmc-checkout-form .gmc-btn,
.gmc-products-search .gmc-btn,
.gmc-cart .gmc-btn,
.gmc-order-summary .gmc-btn {
  color: #000 !important;
}

.gmc-btn:hover {
  transform: translateY(-1px);
  opacity: 0.98;
  background: var(--gmc-btn-hover-bg);
  border-color: var(--gmc-btn-hover-border);
}

.gmc-btn:disabled,
.gmc-btn.is-loading {
  opacity: 0.72;
  cursor: wait;
}

.gmc-btn-secondary {
  background: rgba(148, 163, 184, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.38);
  box-shadow: 0 8px 18px rgba(51, 65, 85, 0.12);
}

.gmc-detail-panel {
  margin-top: 12px;
  border: 1px solid var(--gmc-border);
  border-radius: 12px;
  background: var(--gmc-soft);
  padding: 12px;
}

.gmc-detail-content {
  color: #2c4743;
  font-size: 14px;
  line-height: 1.65;
}

.gmc-detail-content > :first-child {
  margin-top: 0;
}

.gmc-detail-content > :last-child {
  margin-bottom: 0;
}

.gmc-detail-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gmc-link {
  color: var(--gmc-primary-dark);
  text-decoration: none;
  font-weight: 600;
}

.gmc-link:hover {
  text-decoration: underline;
}

.gmc-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 14px;
}

.gmc-single {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: start;
}

.gmc-single-media {
  border: 1px solid var(--gmc-border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(18, 52, 47, 0.08);
  position: relative;
}

.gmc-single-media img {
  width: 100%;
  height: auto;
  display: block;
}

.gmc-single-info {
  border: 1px solid var(--gmc-border);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(18, 52, 47, 0.08);
  position: relative;
}

.gmc-single-title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.3;
  color: var(--gmc-text);
}

.gmc-single-actions {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  margin: 14px 0;
}

.gmc-single-qty-wrap {
  display: grid;
  gap: 6px;
}

.gmc-single-qty-label {
  font-size: 12px;
  color: var(--gmc-muted);
}

.gmc-single-qty {
  width: 100%;
}

.gmc-products-search {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
}

.gmc-products-search-input {
  flex: 1;
  height: 42px;
  padding: 0 12px;
}

.gmc-products-search-btn {
  height: 42px;
  padding-inline: 16px;
}

.gmc-cat-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.gmc-cat-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--gmc-border);
  background: #fff;
  color: #2a4440;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.gmc-cat-link.is-active {
  background: var(--gmc-soft);
  border-color: rgba(15, 118, 110, 0.35);
}

.gmc-slip-wrap {
  margin: 14px 0;
}

.gmc-slip-box {
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #fff;
}

.gmc-slip-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--gmc-muted);
}

.gmc-slip-filename {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #2a4440;
  word-break: break-all;
}

.gmc-single-content {
  margin-top: 14px;
  color: #2c4743;
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 860px) {
  .gmc-single {
    grid-template-columns: 1fr;
  }

  .gmc-single-actions {
    grid-template-columns: 1fr;
  }
}

.gmc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

.gmc-table th,
.gmc-table td {
  border: 1px solid #e5e7eb;
  padding: 8px;
  text-align: left;
}

.gmc-checkout textarea,
.gmc-checkout input[type="text"],
.gmc-checkout input[type="email"] {
  width: 100%;
  max-width: 520px;
}

.gmc-checkout-form {
  margin-top: 12px;
}

.gmc-checkout-form h3 {
  margin: 16px 0 10px;
  font-size: 16px;
}

.gmc-checkout-form button.gmc-btn[type="submit"] {
  height: 44px;
  padding-inline: 16px;
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.12);
}

.gmc-checkout-form button.gmc-btn[type="submit"]:hover {
  background: rgba(34, 197, 94, 0.26);
  border-color: rgba(34, 197, 94, 0.45);
}

.gmc-cart-summary,
.gmc-totals {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
}

.gmc-payment-info {
  margin: 10px 0;
  padding: 12px;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
}

.gmc-mobile-sticky-buybar {
  display: none;
}

.gmc-bottom-nav {
  display: none;
}

@media (max-width: 640px) {
  .gmc-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gmc-card-actions {
    grid-template-columns: 1fr;
  }

  .gmc-detail-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .gmc-mobile-sticky-buybar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--gmc-border);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 28px rgba(11, 19, 43, 0.2);
    backdrop-filter: blur(6px);
  }

  .gmc-mobile-sticky-close {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: #e7efec;
    color: #2b4440;
    font-size: 17px;
    line-height: 24px;
    text-align: center;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
  }

  .gmc-mobile-sticky-close:hover {
    background: #dbe8e4;
  }

  .gmc-mobile-sticky-thumb {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    background: #edf5f3;
    flex-shrink: 0;
  }

  .gmc-mobile-sticky-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
  }

  .gmc-mobile-sticky-meta {
    min-width: 0;
    flex: 1;
  }

  .gmc-mobile-sticky-label {
    font-size: 11px;
    color: var(--gmc-muted);
    margin-bottom: 2px;
  }

  .gmc-mobile-sticky-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--gmc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gmc-mobile-sticky-price {
    margin-top: 1px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gmc-primary-dark);
  }

  .gmc-mobile-sticky-buy {
    flex-shrink: 0;
    padding-inline: 14px;
  }

  .gmc-grid {
    padding-bottom: 112px;
  }

  .gmc-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--gmc-border);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(6px);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.08);
  }

  .gmc-bottom-nav-item {
    display: grid;
    place-items: center;
    gap: 3px;
    padding: 9px 6px 10px;
    color: #2a4440;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    position: relative;
  }

  .gmc-cart-badge {
    position: absolute;
    top: 6px;
    right: 20px;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.25);
  }

  .gmc-cart-thumb {
    width: 56px;
  }

  .gmc-cart-thumb img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
  }

  .gmc-product-list-table th,
  .gmc-product-list-table td {
    vertical-align: middle;
  }

  .gmc-product-list-thumb {
    width: 56px;
  }

  .gmc-product-list-thumb img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
  }

  .gmc-row-qty {
    width: 88px;
    max-width: 100%;
  }

  .gmc-bottom-nav-item .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
  }

  body {
    padding-bottom: 66px;
  }
}
