/* ================================================================
   OMA.PIENVARASTOT.FI – Modernized CSS 2024
   Color: Sky-Blue / Cyan palette
   ================================================================ */

/* ----------------------------------------------------------------
   Custom Properties
   ---------------------------------------------------------------- */
:root {
  --primary:       #0ea5e9;
  --primary-h:     #0284c7;
  --primary-dk:    #075985;
  --primary-lt:    #e0f2fe;
  --primary-ll:    #f0f9ff;

  --bg:      #f8fafc;
  --surface: #ffffff;
  --border:  #e2e8f0;
  --border2: #cbd5e1;

  --text:  #0f172a;
  --text2: #475569;
  --text3: #94a3b8;

  --green:    #16a34a;
  --green-bg: #dcfce7;
  --amber:    #d97706;
  --amber-bg: #fef3c7;
  --red:      #dc2626;
  --red-bg:   #fee2e2;

  --r:    10px;
  --r-sm: 6px;
  --r-lg: 16px;

  --sh:    0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --sh-md: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.08);
  --sh-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.08);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max:  1100px;
  --tx:   0.15s ease;
}

/* ----------------------------------------------------------------
   Reset & Base
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font);
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0;
}

img { max-width: 100%; height: auto; display: block; }

/* ----------------------------------------------------------------
   Layout
   ---------------------------------------------------------------- */
.content-wrapper {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.content-wrapper.error { padding: 80px 24px; text-align: center; }

main { flex: 1; }

/* ----------------------------------------------------------------
   Header
   ---------------------------------------------------------------- */
header {
  background: linear-gradient(135deg, #0c4a6e 0%, #075985 60%, #0369a1 100%);
  box-shadow: var(--sh-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .content-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 0;
  padding-bottom: 0;
  height: 68px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.18);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.logo-text {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  font-weight: 400;
  line-height: 1.2;
}
.logo-text strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

header nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

header nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color var(--tx), background var(--tx);
  white-space: nowrap;
}

header nav a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.13);
}

header .link-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  position: relative;
}

header .link-icons .search {
  display: flex;
  align-items: center;
}

header .link-icons .search i {
  font-size: 16px;
  padding: 9px;
  border-radius: var(--r-sm);
  cursor: pointer;
  color: rgba(255,255,255,0.8);
  transition: background var(--tx), color var(--tx);
}

header .link-icons .search i:hover {
  background: rgba(255,255,255,0.13);
  color: #fff;
}

header .link-icons .search input {
  display: none;
  border: 0;
  border-bottom: 2px solid rgba(255,255,255,0.4);
  background: transparent;
  color: #fff;
  padding: 6px 8px;
  max-width: 180px;
  outline: none;
  font-family: var(--font);
  font-size: 14px;
}

header .link-icons .search input::placeholder { color: rgba(255,255,255,0.5); }

header .link-icons .search input:focus {
  border-bottom-color: rgba(255,255,255,0.85);
}

header .link-icons .responsive-toggle { display: none; }

header .link-icons a {
  position: relative;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  padding: 9px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--tx), color var(--tx);
}

header .link-icons a:hover {
  background: rgba(255,255,255,0.13);
  color: #fff;
}

header .link-icons a i { font-size: 17px; }

header .link-icons a span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #f97316;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 17px;
  height: 17px;
  position: absolute;
  top: 3px;
  right: 3px;
  line-height: 1;
}

/* ----------------------------------------------------------------
   Pricing Section (Home / Hinnasto)
   ---------------------------------------------------------------- */
.pricing-section {
  max-width: 720px;
  margin: 64px auto;
  padding: 0 24px;
}

.pricing-section .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.pricing-section .section-header h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.pricing-section .section-header p {
  color: var(--text2);
  font-size: 16px;
  margin: 0;
}

.pricing-table {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.pricing-table .pt-subtitle {
  background: var(--primary-lt);
  padding: 11px 24px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dk);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.pricing-table .pt-head {
  display: grid;
  grid-template-columns: 1fr 130px 130px;
  background: var(--primary-dk);
  padding: 13px 24px;
}

.pricing-table .pt-head span {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.pricing-table .pt-head span:not(:first-child) { text-align: right; }

.pricing-table .pt-row {
  display: grid;
  grid-template-columns: 1fr 130px 130px;
  padding: 15px 24px;
  border-top: 1px solid var(--border);
  align-items: center;
  transition: background var(--tx);
}

.pricing-table .pt-row:hover { background: var(--primary-ll); }

.pricing-table .pt-row .size {
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
}

.pricing-table .pt-row .size small {
  font-weight: 400;
  color: var(--text3);
  font-size: 13px;
}

.pricing-table .pt-row .price-cell { text-align: right; }

.pricing-table .pt-row .price-cell .price-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dk);
}

.pricing-table .pt-row .price-cell .price-unit {
  font-size: 12px;
  color: var(--text3);
  margin-left: 1px;
}

/* ----------------------------------------------------------------
   Products Page – Storage Cards (Vapaat varastot)
   ---------------------------------------------------------------- */
.page-products {
  padding: 52px 0 64px;
}

.page-products h1 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.page-products .page-subtitle {
  text-align: center;
  color: var(--text2);
  margin: 0 0 36px;
  font-size: 16px;
}

.products-filter {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 20px;
  margin-bottom: 24px;
  box-shadow: var(--sh);
  gap: 12px;
}

.products-filter label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.products-filter select {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
  transition: border-color var(--tx);
}

.products-filter select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}

.storage-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.storage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  transition: box-shadow var(--tx), border-color var(--tx);
  text-decoration: none;
  color: inherit;
}

.storage-card:hover {
  box-shadow: var(--sh-md);
  border-color: #93c5fd;
}

.storage-card .storage-img {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg);
}

.storage-card .storage-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.storage-card .storage-info {
  flex: 1;
  min-width: 0;
}

.storage-card .storage-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}

.storage-card .storage-count {
  display: inline-block;
  background: var(--primary-lt);
  color: var(--primary-dk);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 100px;
  margin-bottom: 6px;
}

.storage-card .storage-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.storage-card .price-main {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dk);
}

.storage-card .price-label {
  font-size: 13px;
  color: var(--text3);
}

.storage-card .price-alt {
  font-size: 13px;
  color: var(--text3);
  text-decoration: line-through;
}

.storage-card .storage-action {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success { background: var(--green-bg); color: var(--green); }
.badge-warning { background: var(--amber-bg); color: var(--amber); }
.badge-danger  { background: var(--red-bg);   color: var(--red);   }

.no-storage {
  background: var(--surface);
  border: 2px dashed var(--border2);
  border-radius: var(--r-lg);
  padding: 56px 24px;
  text-align: center;
}

.no-storage i {
  font-size: 36px;
  color: var(--text3);
  margin-bottom: 14px;
  display: block;
}

.no-storage p {
  margin: 0;
  font-size: 16px;
  color: var(--text2);
}

/* ----------------------------------------------------------------
   Featured banner
   ---------------------------------------------------------------- */
main .featured {
  display: flex;
  flex-direction: column;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 340px;
  padding: 60px 24px;
  position: relative;
}

main .featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7,89,133,0.55);
}

main .featured h2, main .featured p { position: relative; z-index: 1; }

main .featured h2 {
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -1px;
}

main .featured p {
  font-size: 20px;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

/* Tuotekortit (hakutulokset, ostoskorin lisätarvikkeet) - sama korttikieli kuin storage-card */
.recentlyadded.content-wrapper { padding: 0; }

main .recentlyadded .products, main .products .products-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  padding: 28px 0 0;
}

main .recentlyadded .products .product, main .products .products-wrapper .product {
  display: flex;
  flex-direction: column;
  width: auto;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  text-decoration: none;
  transition: box-shadow var(--tx), transform var(--tx), border-color var(--tx);
}

main .recentlyadded .products .product:hover, main .products .products-wrapper .product:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
  border-color: var(--primary-lt);
}

main .recentlyadded .products .product img, main .products .products-wrapper .product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--bg);
  border-radius: var(--r);
}

main .recentlyadded .products .product .name, main .products .products-wrapper .product .name {
  display: block;
  color: var(--text);
  padding: 12px 0 4px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
}

main .recentlyadded .products .product .price, main .products .products-wrapper .product .price {
  display: block;
  color: var(--primary-dk);
  font-weight: 700;
  font-size: 15px;
}

main .recentlyadded .products .product .rrp, main .products .products-wrapper .product .rrp {
  color: var(--text3);
  text-decoration: line-through;
  font-weight: 400;
  font-size: 13px;
  margin-left: 6px;
}

main .recentlyadded .products .product:hover .name, main .products .products-wrapper .product:hover .name {
  color: var(--primary-dk);
}

/* ----------------------------------------------------------------
   Single Product page
   ---------------------------------------------------------------- */
main > .product {
  display: flex;
  padding: 48px 24px 64px;
  gap: 40px;
}

main > .product h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}

main > .product .product-img-large {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 460px;
  background: var(--bg);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
}

main > .product .product-small-imgs {
  display: flex;
  flex-flow: wrap;
  gap: 10px;
  margin-top: 12px;
}

main > .product .product-small-imgs .product-img-small {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-basis: calc(33.33% - 8px);
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 8px;
  aspect-ratio: 1;
  transition: border-color var(--tx);
}

main > .product .product-small-imgs .product-img-small:hover,
main > .product .product-small-imgs .product-img-small.selected {
  border-color: var(--primary);
}

main > .product .product-img-large img, main > .product .product-img-small img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

main > .product .product-imgs { flex: 1; }
main > .product .product-wrapper { flex: 1; }

main > .product .prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

main > .product .price {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dk);
}

main > .product .rrp {
  color: var(--text3);
  text-decoration: line-through;
  font-size: 20px;
}

main > .product form {
  display: flex;
  flex-flow: column;
  margin: 24px 0 40px;
}

main > .product form label { padding-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--text2); }

main > .product form select,
main > .product form input[type="number"],
main > .product form input[type="text"],
main > .product form input[type="datetime-local"] {
  width: 420px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--tx), box-shadow var(--tx);
}

main > .product form select:focus,
main > .product form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}

main > .product form .radio-checkbox {
  display: flex;
  flex-flow: wrap;
  max-width: 420px;
  gap: 8px 0;
}

main > .product form .radio-checkbox input { margin: 0 8px 10px 0; }
main > .product form .radio-checkbox label { padding-right: 14px; }

main > .product form .radio-checkbox label.opt-campaign { color: var(--amber); font-weight: 600; }
main > .product form .opt-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-radius: 100px;
  vertical-align: middle;
}
main > .product form .opt-campaign-note {
  max-width: 420px;
  margin: -4px 0 14px;
  padding: 8px 12px;
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 13px;
  border-radius: var(--r-sm);
}

main > .product form .btn { margin-top: 10px; width: 420px; }

/* ----------------------------------------------------------------
   Legacy: Products page header (used when no .page-products)
   ---------------------------------------------------------------- */
main > .products h1 {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin: 0;
  padding: 48px 0 32px;
}

main > .products .products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
}

main > .products .products-header p { margin: 0; }
main > .products .products-header label { padding-left: 16px; font-size: 14px; font-weight: 500; }

main > .products .products-header select {
  padding: 7px 12px;
  margin-left: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
}

main > .products .buttons { text-align: right; padding-bottom: 40px; }
main > .products .buttons a:first-child { margin-right: 6px; }

/* ----------------------------------------------------------------
   Cart
   ---------------------------------------------------------------- */
main .cart { padding-bottom: 60px; }

main .cart h1 {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin: 0;
  padding: 48px 0 32px;
}

main .cart table { width: 100%; border-collapse: collapse; }

main .cart table thead td {
  padding: 12px 0;
  border-bottom: 2px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text3);
}

main .cart table thead td:last-child { text-align: right; }

main .cart table tbody td {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

main .cart table tbody td:last-child { text-align: right; }

main .cart table .img { width: 80px; }

main .cart table .remove {
  font-size: 12px;
  color: var(--text3);
  padding-top: 4px;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: color var(--tx);
}

main .cart table .remove:hover { color: var(--red); }

main .cart table .price, main .cart table .options { color: var(--text2); }
main .cart table .options { font-size: 13px; max-width: 200px; }

main .cart table a { text-decoration: none; color: var(--text); }

main .cart table input[type="number"] {
  width: 64px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 14px;
  text-align: center;
  color: var(--text);
}

main .cart .total {
  text-align: right;
  padding: 24px 0 36px;
}

main .cart .total .text {
  padding-right: 32px;
  font-size: 17px;
  font-weight: 600;
}

main .cart .total .price {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-dk);
}

main .cart .total .note {
  display: block;
  padding-top: 10px;
  color: var(--text2);
  font-size: 14px;
}

main .cart .buttons { text-align: right; padding-bottom: 40px; }
main .cart .buttons .btn { margin: 0 0 8px 8px; }

/* ----------------------------------------------------------------
   Placeorder
   ---------------------------------------------------------------- */
main .placeorder h1 {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin: 0;
  padding: 48px 0 24px;
}

main .placeorder p { text-align: center; color: var(--text2); }

/* ----------------------------------------------------------------
   Checkout
   ---------------------------------------------------------------- */
main .checkout h1 {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin: 0;
  padding: 48px 0 32px;
}

main .checkout .container {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

main .checkout .shipping-details {
  width: 100%;
  display: flex;
  flex-flow: wrap;
  padding-bottom: 40px;
}

main .checkout .shipping-details h2 {
  width: 100%;
  font-size: 18px;
  font-weight: 600;
  padding: 28px 0 16px;
  margin: 0 0 10px;
  border-bottom: 2px solid var(--border);
}

main .checkout .shipping-details h2:first-child { padding-top: 16px; }

main .checkout .shipping-details label {
  display: block;
  padding: 14px 0 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
}

.info-tip { position: relative; }
.info-tip-btn {
  display: inline;
  margin-left: 6px;
  border: none;
  background: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.info-tip-btn:hover { color: var(--primary-h); }
.info-tip-popup {
  display: none;
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  margin-top: 6px;
  width: 280px;
  max-width: calc(100vw - 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-md);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text2);
}
.info-tip-popup.open { display: block; }

main .checkout .shipping-details .row1,
main .checkout .shipping-details .row2 {
  width: 50%;
  display: inline-block;
}

main .checkout .shipping-details .row1 { padding-right: 10px; }
main .checkout .shipping-details .row2 { padding-left: 10px; }

main .checkout .payment-methods {
  display: flex;
  flex-flow: wrap;
  width: 100%;
  gap: 10px;
}

main .checkout .payment-methods label {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--r);
  height: 60px;
  width: 155px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: border-color var(--tx), box-shadow var(--tx);
}

main .checkout .payment-methods label:hover { border-color: var(--primary); }

main .checkout .payment-methods label .fa-stripe { color: #635bff; }

main .checkout .payment-methods input {
  position: absolute;
  top: -9999px;
  left: -9999px;
  visibility: hidden;
}

main .checkout .payment-methods input:checked + label {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.2);
}

main .checkout .cart-details {
  min-width: 300px;
  width: 90%;
  box-shadow: var(--sh-md);
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 50px;
}

main .checkout .cart-details h2 {
  margin: 0;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

main .checkout .cart-details table {
  width: 100%;
  padding: 16px 20px;
  border-collapse: collapse;
}

main .checkout .cart-details table .price { text-align: right; font-weight: 600; }
main .checkout .cart-details table td { padding: 5px 4px; font-size: 14px; }

main .checkout .cart-details .discount-code { padding: 0 20px 20px; }
main .checkout .cart-details .discount-code .result { display: block; padding-top: 10px; font-size: 14px; }

main .checkout .cart-details .shipping-methods {
  border-top: 1px solid var(--border);
  padding: 20px;
}

main .checkout .cart-details .shipping-methods h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
}

main .checkout .cart-details .shipping-methods .shipping-method {
  padding-top: 8px;
  font-size: 14px;
}

main .checkout .cart-details .total {
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  padding: 20px;
  font-size: 17px;
  font-weight: 700;
}

main .checkout .cart-details .alt {
  font-size: 13px;
  color: var(--text3);
  padding-left: 4px;
  font-weight: 400;
}

main .checkout .cart-details .summary {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}

main .checkout .cart-details .summary div {
  display: flex;
  justify-content: space-between;
  padding: 6px 20px;
}

main .checkout .cart-details .summary div span { font-size: 14px; font-weight: 500; }

main .checkout .cart-details .summary .discount span { color: var(--red); }

main .checkout .cart-details .buttons { margin: 0 20px 20px; }
main .checkout .cart-details .buttons .btn { width: 100%; }

/* ----------------------------------------------------------------
   My Account
   ---------------------------------------------------------------- */
main .myaccount {
  display: flex;
  flex-flow: wrap;
  padding-bottom: 60px;
}

main .myaccount h1 {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin: 0;
  padding: 48px 0 32px;
}

main .myaccount .menu {
  padding-right: 32px;
  width: 240px;
}

main .myaccount .menu a {
  display: block;
  text-decoration: none;
  color: var(--text2);
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  transition: color var(--tx);
}

main .myaccount .menu a:hover { color: var(--primary); }

main .myaccount .myorders, main .myaccount .mydownloads, main .myaccount .settings {
  flex: 1;
  padding-bottom: 50px;
}

main .myaccount .myorders .order {
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh);
  margin: 24px 0;
  overflow: hidden;
}

main .myaccount .myorders .order .order-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

main .myaccount .myorders .order .order-header > div { display: flex; padding: 14px 16px; }
main .myaccount .myorders .order .order-header > div div { padding-right: 30px; }
main .myaccount .myorders .order .order-header > div div:last-child { padding-right: 0; }

main .myaccount .myorders .order .order-header > div div span {
  display: block;
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

main .myaccount .myorders .order .order-items { padding: 14px 16px; }
main .myaccount .myorders .order .order-items table { margin: 0; padding: 0; }

main .myaccount .settings form { max-width: 420px; }
main .myaccount .settings form .btn { margin-top: 24px; }

main .myaccount form { width: 100%; }

main .myaccount h2 {
  width: 100%;
  font-size: 19px;
  font-weight: 600;
  padding: 28px 0 18px;
  margin: 0 0 10px;
  border-bottom: 2px solid var(--border);
}

main .myaccount table { padding-bottom: 40px; width: 100%; border-collapse: collapse; }
main .myaccount table tr:last-child td { border-bottom: 0; }

main .myaccount table thead td {
  padding: 12px 0;
  border-bottom: 2px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text3);
}

main .myaccount table thead td:last-child { text-align: right; }

main .myaccount table tbody td {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

main .myaccount table tbody td:last-child { text-align: right; }

main .myaccount table .img { width: 80px; }
main .myaccount table .price { color: var(--text2); }
main .myaccount table .options { color: var(--text2); font-size: 13px; }

main .myaccount table a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0 12px;
  font-size: 13px;
  text-decoration: none;
  color: var(--red);
  margin: 0 4px 4px 0;
  transition: color var(--tx), border-color var(--tx);
}

main .myaccount table a:hover { color: #b91c1c; border-color: #b91c1c; }

main .myaccount table a i {
  display: inline-flex;
  align-items: center;
  padding-right: 8px;
  margin-right: 8px;
  height: 100%;
  border-right: 1px solid var(--border);
}

main .myaccount table .name { word-break: break-all; }
main .myaccount table input[type="number"] {
  width: 64px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 14px;
  text-align: center;
}

main .myaccount .total { text-align: right; padding: 24px 0 36px; }
main .myaccount .total .text { padding-right: 32px; font-size: 17px; font-weight: 600; }
main .myaccount .total .price { font-size: 17px; font-weight: 700; color: var(--primary-dk); }
main .myaccount .total .note { display: block; padding-top: 10px; color: var(--text2); font-size: 14px; }

main .myaccount .buttons { text-align: right; padding-bottom: 40px; }
main .myaccount .buttons .btn { margin: 0 0 8px 8px; }

main .myaccount .login-register {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 40px;
  margin-top: 40px;
}

main .myaccount .login-register h1 {
  text-align: left;
  padding-top: 12px;
  font-size: 22px;
}

main .myaccount .login-register .login {
  width: 100%;
  border-right: 1px solid var(--border);
  padding-right: 40px;
}

main .myaccount .login-register .register {
  width: 100%;
  padding-left: 40px;
}

main .myaccount .login-register .btn { margin-top: 24px; }

main .myaccount .shipping-details {
  width: 600px;
  display: flex;
  flex-flow: wrap;
  padding-bottom: 40px;
}

main .myaccount .shipping-details h2 {
  font-size: 18px;
  font-weight: 600;
  padding: 28px 0 16px;
  margin: 0 0 10px;
  border-bottom: 2px solid var(--border);
}

main .myaccount .shipping-details label { display: block; padding: 14px 0 8px; font-size: 14px; font-weight: 500; color: var(--text2); }

main .myaccount .shipping-details .row1,
main .myaccount .shipping-details .row2 { width: 50%; display: inline-block; }
main .myaccount .shipping-details .row1 { padding-right: 10px; }
main .myaccount .shipping-details .row2 { padding-left: 10px; }

main .myaccount .container { display: flex; align-items: flex-start; gap: 32px; }
main .myaccount .cart-details {
  min-width: 280px;
  box-shadow: var(--sh-md);
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 50px;
}

/* ----------------------------------------------------------------
   Forms & Buttons
   ---------------------------------------------------------------- */
.form-label {
  display: block;
  padding: 18px 0 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
}

.form-field {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  transition: border-color var(--tx), box-shadow var(--tx);
}

.form-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  background: var(--primary);
  border: 0;
  color: #ffffff;
  padding: 11px 20px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--tx), box-shadow var(--tx), transform 0.08s;
  white-space: nowrap;
  line-height: 1;
}

.btn:hover {
  background: var(--primary-h);
  box-shadow: 0 4px 12px rgba(14,165,233,0.3);
  color: #fff;
}

.btn:active { transform: translateY(1px); }

.btn:disabled {
  background: var(--border2);
  color: var(--text3);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-success { background: var(--green) !important; }
.btn-success:hover {
  background: #15803d !important;
  box-shadow: 0 4px 12px rgba(22,163,74,0.3) !important;
}

.btn-warning { background: var(--amber) !important; color: #fff !important; }
.btn-warning:hover {
  background: #b45309 !important;
  box-shadow: 0 4px 12px rgba(217,119,6,0.3) !important;
}

/* ----------------------------------------------------------------
   Image Modal
   ---------------------------------------------------------------- */
.img-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.72);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-modal div {
  display: flex;
  flex-flow: column;
  width: 800px;
  height: 800px;
  max-width: 92%;
  max-height: 92%;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--sh-lg);
}

.img-modal div a {
  display: inline-flex;
  align-self: flex-end;
  text-decoration: none;
  font-size: 28px;
  line-height: 1;
  color: var(--text3);
  transition: color var(--tx);
}

.img-modal div a:hover { color: var(--text2); }

.img-modal div img {
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  flex: 1;
  padding: 12px 0;
}

/* Errors */
main p.error { color: var(--red); font-size: 14px; margin-top: 8px; }

/* ----------------------------------------------------------------
   Cart Details (also used in products page legacy)
   ---------------------------------------------------------------- */
main .cart-details, .cart-details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh);
}

main .cart-details table, .cart-details table {
  width: 100%;
  border-collapse: collapse;
  padding: 0;
}

main .cart-details table td, .cart-details table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

main .cart-details table tr:last-child td, .cart-details table tr:last-child td {
  border-bottom: 0;
}

main .cart-details table .name, .cart-details table .name {
  font-weight: 600;
  color: var(--text);
}

main .cart-details table .price, .cart-details table .price {
  color: var(--primary-dk);
  font-weight: 700;
}

main .cart-details table .rrp, .cart-details table .rrp {
  color: var(--text3);
  text-decoration: line-through;
  font-size: 14px;
}

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.footeri {
  background: linear-gradient(160deg, #0c4a6e 0%, #075985 70%, #0369a1 100%);
  padding: 52px 0 32px;
  margin-top: auto;
}

.footeri .container {
  max-width: var(--max);
  margin: auto;
  padding: 0 24px;
}

.footeri .container .row {
  display: flex;
  flex-wrap: wrap;
}

.footer-col {
  width: 25%;
  padding: 0 16px 28px;
}

.footer-col h4 {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 20px;
  font-weight: 600;
  position: relative;
  padding-bottom: 14px;
}

.footer-col h4::before { display: none; }

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--primary);
  height: 2px;
  width: 28px;
  border-radius: 1px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  display: block;
  transition: color var(--tx);
}

.footer-col ul li a:hover { color: #fff; padding-left: 0; }

.footer-col .social-links {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.footer-col .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  text-decoration: none;
  transition: background var(--tx), color var(--tx);
  margin: 0;
}

.footer-col .social-links a:hover {
  background: #fff;
  color: var(--primary-dk);
}

.footeri2 {
  background: #083959;
  padding: 14px 0;
}

.footer-last {
  max-width: var(--max);
  margin: auto;
  padding: 0 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-align: center;
  background: transparent;
  width: 100%;
}

.footer-last a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  background: transparent;
  font-size: 13px;
  transition: color var(--tx);
}

.footer-last a:hover { color: rgba(255,255,255,0.85); }

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media screen and (max-width: 1050px) {
  .rhide { display: none; }

  header nav {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background: #075985;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
    box-shadow: var(--sh-md);
    z-index: 99;
  }

  header nav a {
    border-radius: 0;
    padding: 13px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 15px;
  }

  .logo-text { font-size: 13px; }
  .logo-text strong { font-size: 14px; }

  header .link-icons .responsive-toggle { display: flex; }

  .footer-col { width: 50%; margin-bottom: 4px; }

  .pricing-section { margin: 36px auto; }
  .pricing-table .pt-head,
  .pricing-table .pt-row { grid-template-columns: 1fr 120px 120px; }

  main .featured h2 { font-size: 40px; }
  main .featured p  { font-size: 18px; }

  main > .products .products-header { flex-flow: column; gap: 12px; }

  main > .product {
    padding: 24px 24px;
    flex-flow: column;
    gap: 20px;
  }

  main > .product .product-img-large { height: 280px; }
  main > .product .product-small-imgs .product-img-small { flex-basis: 30%; }

  main > .product form input[type="number"],
  main > .product form input[type="text"],
  main > .product form input[type="datetime-local"],
  main > .product form select,
  main > .product form .btn { width: 100%; }

  main .checkout .container { flex-flow: column; }
  main .checkout .shipping-details { width: 100%; }
  main .checkout .cart-details { margin: 0 0 40px; width: 100%; }
  main .checkout .payment-methods label { flex: 1; min-width: 130px; }

  main .myaccount .login-register { flex-flow: column; gap: 0; }
  main .myaccount .login-register .login { border-right: 0; padding: 10px 0; }
  main .myaccount .login-register .register { padding: 10px 0; }
  main .myaccount .menu { width: 100%; padding-right: 0; }
  main .myaccount .shipping-details { width: 100%; }

  .storage-card .storage-action { align-items: flex-start; }
}

@media screen and (max-width: 600px) {
  .footer-col { width: 100%; }
  .pricing-section .section-header h2 { font-size: 24px; }
  .storage-card { gap: 14px; padding: 14px 16px; }
  .storage-card .storage-img { width: 60px; height: 60px; }
  .storage-card .price-main { font-size: 17px; }

  main .cart table input[type="number"] { width: 46px; }
}
