/* Storefront additions on top of the cozastore template (main.css / util.css). */

:root {
  --brand: #004aad;
  --accent: #717fe0;
  --ok: #1f8a4c;
  --err: #c0392b;
  --line: #e6e6e6;
  --muted: #888;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.main-body-container { margin-top: 50px; min-height: 50vh; }

.inline-form { display: inline; margin: 0; }
.link-button {
  background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer;
}
.main-menu .link-button { font-family: Poppins-Medium; font-size: 14px; color: #333; padding: 20px 10px 20px 0; }
.main-menu .link-button:hover { color: var(--accent); }
.main-menu-m .link-button { font-family: Poppins-Medium; font-size: 14px; color: #fff; padding: 8px 20px; }

/* Mobile menu (template used jQuery slideToggle) */
.menu-mobile.is-open { display: block; }

/* Flash messages */
.flash-container { margin-bottom: 20px; }
.flash {
  padding: 12px 16px; border-radius: 4px; margin-bottom: 10px;
  font-family: Poppins-Regular; font-size: 14px; line-height: 1.5;
}
.flash-success { background: #e9f7ef; color: #1d6b3d; border: 1px solid #bfe5cf; }
.flash-error { background: #fdecea; color: #8e2a20; border: 1px solid #f5c2bc; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: #222; color: #fff; padding: 12px 20px; border-radius: 4px;
  font-family: Poppins-Regular; font-size: 14px; z-index: 10000;
  opacity: 0; pointer-events: none; transition: all .25s; max-width: calc(100% - 32px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--err); }

/* Product cards */
.hov-img0 { position: relative; }
.hov-img0 img { width: 100%; height: 270px; object-fit: cover; }
.block2-btn { border: 0; cursor: pointer; }
.badge-sale, .badge-out {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: Poppins-Medium; font-size: 12px; padding: 3px 10px; border-radius: 12px; color: #fff;
}
.badge-sale { background: #e65540; }
.badge-out { background: #555; left: auto; right: 10px; }
.price-was { color: var(--muted); margin-right: 6px; font-size: .9em; }
.results-note a { margin-left: 8px; }
.filter-link { display: inline-block; }
.filter-link:hover { color: var(--accent); }

/* Product page */
.gallery-main img { width: 100%; max-height: 560px; object-fit: contain; background: #f7f7f7; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb { width: 80px; height: 80px; border: 2px solid transparent; padding: 0; background: #f7f7f7; cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: var(--accent); }
.note { font-size: 13px; }
.tier-list { list-style: disc; padding-left: 18px; }
.form-select-plain {
  width: 100%; height: 45px; border: 1px solid #e6e6e6; border-radius: 3px; padding: 0 12px;
  font-family: Poppins-Regular; font-size: 14px; color: #555; background: #fff;
}
.wrap-num-product button { border: 0; }
button[disabled] { opacity: .5; cursor: not-allowed; }

/* Cart */
.table-shopping-cart .table_row { height: 100px; }
.table-shopping-cart .table_row td { padding-bottom: 0 !important; }
.table-shopping-cart .column-3 { text-align: right; }
.remove-line { margin-left: 8px; color: #e95151; font-size: 18px; }
.empty-cart-big { width: 250px; max-width: 100%; }
.header-cart-item .empty-cart-img { width: 100%; }
.cart-img-button { border: 0; padding: 0; background: none; cursor: pointer; width: 100%; height: 100%; }
.cart-img-button img { width: 100%; }
.header-cart-total { padding-top: 30px; padding-bottom: 30px; }
.free-gap { margin-top: 10px; color: var(--ok); }

.totals { display: grid; grid-template-columns: 1fr auto; gap: 8px 0; margin: 0; font-family: Poppins-Regular; font-size: 15px; color: #555; }
.totals dt { font-weight: normal; }
.totals dd { margin: 0; text-align: right; padding-left: 16px; }
.totals .discount { color: var(--ok); }
.totals .grand { font-family: Poppins-Medium; color: #222; font-size: 17px; padding-top: 8px; border-top: 1px solid var(--line); }

/* Checkout */
.form-field label, .form-field span.stext-110 { display: block; margin-bottom: 4px; }
.form-field.has-error input, .form-field.has-error select { border-color: var(--err); }
.field-error { display: block; color: var(--err); font-family: Poppins-Regular; font-size: 13px; margin-top: 4px; }
.postal-code { text-transform: uppercase; }
.js-checkout .size-210 { width: 50%; }
@media (max-width: 575px) { .js-checkout .size-210 { width: 100%; } }
.checkout-items { list-style: none; padding: 0; margin: 0 0 20px; }
.checkout-items li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f1f1f1; font-family: Poppins-Regular; font-size: 14px; }
.checkout-items img { width: 56px; height: 56px; object-fit: cover; }
.checkout-items .qty { color: var(--muted); white-space: nowrap; }
.payment-methods { border: 1px solid var(--line); border-radius: 4px; padding: 12px 16px; font-family: Poppins-Regular; font-size: 14px; }
.payment-methods legend { width: auto; padding: 0 6px; margin: 0; font-size: 14px; }
.payment-methods label { display: flex; align-items: center; gap: 8px; margin: 6px 0; cursor: pointer; }
.payment-methods input { display: inline-block; width: auto; margin: 0; }
.payment-methods small { color: var(--muted); }

/* Messages (order result, verification, errors) */
.order-msg-container { display: flex; justify-content: center; }
.order-message { max-width: 620px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.order-icon { width: 90px; }
.order-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn-outline { border: 1px solid #333; }
.debug-trace { text-align: left; max-width: 100%; overflow: auto; background: #f7f7f7; padding: 12px; font-size: 12px; }

/* Account forms */
.auth-box { max-width: 460px; margin: 40px auto; padding: 30px; border: 1px solid var(--line); border-radius: 4px; }
.stack-form label { display: block; font-family: Poppins-Regular; font-size: 14px; color: #333; margin: 14px 0 4px; }
.stack-form input, .stack-form select {
  width: 100%; height: 44px; border: 1px solid #ccc; border-radius: 3px; padding: 0 12px;
  font-family: Poppins-Regular; font-size: 14px; color: #333;
}
.stack-form input:focus, .stack-form select:focus { border-color: var(--accent); outline: none; }
.stack-form input[disabled] { background: #f5f5f5; color: #888; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 575px) { .two-col { grid-template-columns: 1fr; } }

/* Tables (my orders) */
.table-wrap { overflow-x: auto; }
.simple-table { width: 100%; border-collapse: collapse; font-family: Poppins-Regular; font-size: 14px; color: #555; }
.simple-table th, .simple-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.simple-table th { font-family: Poppins-Medium; color: #333; background: #f9f9f9; }
.simple-table .num { text-align: right; white-space: nowrap; }

.status { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; background: #eef0fc; color: #3d4aa8; white-space: nowrap; }
.status-5, .status-8 { background: #e9f7ef; color: #1d6b3d; }
.status-6, .status-7, .status-unpaid { background: #fdecea; color: #8e2a20; }

.btn-back-to-top { border: 0; }
