/* Slim checkout/cart header */
.rcc-slim-header { background: #ee7219; text-align: center; padding: 18px 24px; }
.rcc-slim-logo { height: 64px; width: auto; display: inline-block; filter: brightness(0) invert(1); }
.rcc-shop { --rcc-navy: #1a2a5e; --rcc-steel: #5b8db8; --rcc-light: #e8f4fc; --rcc-gold: #c9a84c; --rcc-white: #ffffff; --rcc-off: #f5f8fc; --rcc-border: #dde4ee; --rcc-text: #1a1a2e; font-family: inherit; color: var(--rcc-text); }
.rcc-shop a, .rcc-shop a:hover, .rcc-shop a:focus { text-decoration: none; }
/* Hero */
.rcc-hero { background: var(--rcc-navy); color: #fff; padding: 60px 32px; text-align: center; margin-bottom: 0; }
.rcc-hero-title { font-size: 2.2rem; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.02em; }
.rcc-hero-logo { width: 150px; height: auto; margin-bottom: 20px; display: block; margin-left: auto; margin-right: auto; }
.rcc-hero-sub { font-size: 1.05rem; opacity: .8; margin: 0; text-align: center; }
/* Controls */
.rcc-shop-body { padding: 32px 32px 48px; }
@media (max-width: 640px) { .rcc-shop-body { padding: 24px 16px 40px; } }
.rcc-shop-controls { position: relative; display: flex; justify-content: center; align-items: center; margin-bottom: 24px; }
.rcc-tabs { display: flex; gap: 4px; }
.rcc-search-wrap { position: absolute; left: 0; }
.rcc-cart-btn { position: absolute; right: 0; display: flex; align-items: center; gap: 8px; }
.rcc-cart-count { background: #fff; color: var(--rcc-navy); border-radius: 12px; padding: 1px 7px; font-size: 12px; font-weight: 700; min-width: 20px; text-align: center; }
.rcc-tab-btn { padding: 8px 22px; border: 2px solid var(--rcc-navy); border-radius: 4px; background: transparent; color: var(--rcc-navy); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .15s; }
.rcc-tab-btn.active, .rcc-tab-btn:hover { background: var(--rcc-navy); color: #fff; }
.rcc-search-wrap input { padding: 8px 12px; border: 1px solid var(--rcc-border); border-radius: 4px; font-size: 14px; width: 240px; outline: none; }
.rcc-search-wrap input:focus { border-color: var(--rcc-steel); box-shadow: 0 0 0 3px rgba(91,141,184,.2); }
@media (max-width: 640px) {
  .rcc-shop-controls { flex-direction: column; align-items: stretch; gap: 10px; }
  .rcc-search-wrap { position: static; }
  .rcc-search-wrap input { width: 100%; box-sizing: border-box; }
  .rcc-cart-btn { position: static; width: 100%; justify-content: center; }
  .rcc-tabs { justify-content: center; }
}
/* Grid */
.rcc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1200px) { .rcc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .rcc-grid { grid-template-columns: repeat(2, 1fr); } }
/* Cards */
.rcc-product-card { border: 1px solid var(--rcc-border); border-radius: 8px; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.rcc-product-card:hover { box-shadow: 0 8px 24px rgba(26,42,94,.12); }
.rcc-card-img-wrap { display: block; aspect-ratio: 1; overflow: hidden; background: var(--rcc-off); }
.rcc-card-img { width: 100%; height: 100%; object-fit: contain; padding: 12px; box-sizing: border-box; transition: transform .3s; }
.rcc-card-img-wrap:hover .rcc-card-img { transform: scale(1.04); }
.rcc-card-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--rcc-light) 0%, var(--rcc-border) 100%); }
.rcc-card-body { padding: 14px 16px 16px; text-align: center; }
.rcc-card-body .rcc-btn { display: block; text-align: center; padding: 10px 20px; font-size: 14px; }
.rcc-card-title { font-size: 15px; font-weight: 600; margin: 0 0 6px; line-height: 1.3; }
.rcc-card-title a { color: var(--rcc-text); text-decoration: none; }
.rcc-card-title a:hover { color: var(--rcc-navy); }
.rcc-card-price { font-size: 17px; font-weight: 700; color: var(--rcc-navy); margin: 0 0 12px; text-align: center; display: block; }
/* Buttons */
.rcc-btn { display: inline-block; padding: 9px 20px; border-radius: 4px; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; border: none; transition: background .15s, opacity .15s; }
.rcc-btn-primary { background: var(--rcc-navy) !important; color: #fff !important; }
.rcc-btn-primary:hover { background: var(--rcc-navy) !important; color: #fff !important; }
.rcc-btn-sm { padding: 6px 14px; font-size: 13px; }
.rcc-btn-lg { padding: 13px 28px; font-size: 16px; }
.rcc-btn-block { display: block; width: 100%; text-align: center; }
.rcc-btn:disabled { opacity: .6; cursor: not-allowed; }
/* Single product */
.rcc-single-product { padding: 32px 32px 48px; }
.rcc-single-product-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.rcc-single-product-nav .rcc-back-link { margin-bottom: 0; }
@media (max-width: 640px) { .rcc-single-product { padding: 24px 16px 40px; } }
.rcc-back-link { display: inline-block; margin-bottom: 20px; padding: 9px 20px; background: var(--rcc-navy) !important; border: none; border-radius: 4px; color: #fff !important; text-decoration: none !important; font-size: 14px; font-weight: 600; cursor: pointer; }
.rcc-back-link:hover { background: var(--rcc-navy) !important; color: #fff !important; }
.rcc-product-layout { display: grid; grid-template-columns: 2fr 3fr; gap: 48px; align-items: start; max-width: 900px; margin: 0 auto; }
@media (max-width: 900px) { .rcc-product-layout { grid-template-columns: 1fr; gap: 24px; } }
.rcc-product-main-img { width: 100%; border-radius: 8px; display: block; border: 1px solid var(--rcc-border); }
div.rcc-product-main-img { aspect-ratio: 1; }
.rcc-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.rcc-thumb { width: 68px; height: 68px; object-fit: cover; border-radius: 4px; border: 2px solid var(--rcc-border); cursor: pointer; transition: border-color .15s; }
.rcc-thumb.active, .rcc-thumb:hover { border-color: var(--rcc-navy); }
.rcc-product-title { font-size: 1.8rem; font-weight: 700; margin: 0 0 10px; }
.rcc-product-price { font-size: 1.6rem; font-weight: 700; color: var(--rcc-navy); margin: 0 0 8px; }
.rcc-product-sku { font-size: 12px; color: #888; margin: 0 0 16px; }
.rcc-product-desc { margin-bottom: 20px; line-height: 1.7; }
.rcc-product-desc ul { list-style: disc !important; padding-left: 22px !important; margin: 0 0 12px !important; }
.rcc-product-desc ul li { list-style: disc !important; margin-bottom: 6px !important; display: list-item !important; }
/* Form elements */
.rcc-form-row { margin-bottom: 16px; }
.rcc-form-row label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--rcc-navy); }
.rcc-form-row input[type="text"],
.rcc-form-row input[type="email"],
.rcc-form-row input[type="tel"],
.rcc-form-row textarea,
.rcc-form-row select { width: 100%; padding: 9px 12px; border: 1px solid var(--rcc-border); border-radius: 4px; font-size: 14px; font-family: inherit; outline: none; box-sizing: border-box; }
.rcc-form-row input:focus,
.rcc-form-row textarea:focus,
.rcc-form-row select:focus { border-color: var(--rcc-steel); box-shadow: 0 0 0 3px rgba(91,141,184,.2); }
.rcc-qty-wrap { display: flex; align-items: center; gap: 0; }
.rcc-qty-btn { width: 36px; height: 36px; border: 1px solid var(--rcc-border); background: var(--rcc-off); cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.rcc-qty-btn:first-child { border-radius: 4px 0 0 4px; }
.rcc-qty-btn:last-child  { border-radius: 0 4px 4px 0; }
.rcc-qty-btn:hover { background: var(--rcc-light); }
.rcc-qty-input { width: 52px; height: 36px; border: 1px solid var(--rcc-border); border-left: 0; border-right: 0; text-align: center; font-size: 15px; -moz-appearance: textfield; }
.rcc-qty-input::-webkit-outer-spin-button,
.rcc-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.rcc-form-msg { margin-top: 10px; font-size: 13px; min-height: 18px; display: flex; flex-direction: column; gap: 10px; }
.rcc-view-cart-btn { align-self: flex-start; }
.rcc-msg-ok  { color: #155724; }
.rcc-msg-err { color: #721c24; }
.rcc-atc-form { max-width: 360px; }
/* Section title */
.rcc-section-title { font-size: 1.6rem; font-weight: 700; color: var(--rcc-navy); margin: 0 0 24px; border-bottom: 3px solid var(--rcc-navy); padding-bottom: 12px; }
/* Cart */
.rcc-cart { padding: 32px 32px 48px; }
.rcc-cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.rcc-cart-header .rcc-section-title { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
@media (max-width: 640px) { .rcc-cart { padding: 24px 16px 40px; } }
.rcc-cart-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rcc-cart-table th { background: var(--rcc-navy); color: #fff; padding: 10px 14px; text-align: left; font-size: 13px; }
.rcc-cart-table td { padding: 12px 14px; border-bottom: 1px solid var(--rcc-border); vertical-align: middle; }
.rcc-cart-product { display: flex; align-items: center; gap: 10px; }
.rcc-cart-product-name { color: var(--rcc-text); font-weight: 600; }
.rcc-cart-product-name:hover { color: var(--rcc-navy); }
.rcc-cart-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 4px; border: 1px solid var(--rcc-border); }
.rcc-cart-thumb-placeholder { background: linear-gradient(135deg, var(--rcc-light) 0%, var(--rcc-border) 100%); flex-shrink: 0; }
.rcc-remove-item { background: none; border: none; color: #c33; font-size: 20px; cursor: pointer; padding: 2px 6px; line-height: 1; }
.rcc-remove-item:hover { color: #900; }
.rcc-cart-footer { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; flex-wrap: wrap; gap: 16px; }
.rcc-cart-subtotal { font-size: 18px; }
.rcc-cart-subtotal strong { color: var(--rcc-navy); }
.rcc-empty-cart { text-align: center; padding: 60px 0; }
@media (max-width: 640px) {
	.rcc-cart-table thead { display: none; }
	.rcc-cart-table tr  { display: block; margin-bottom: 16px; border: 1px solid var(--rcc-border); border-radius: 6px; overflow: hidden; }
	.rcc-cart-table td  { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--rcc-border); }
	.rcc-cart-table td::before { content: attr(data-label); font-weight: 600; color: var(--rcc-navy); margin-right: 12px; flex-shrink: 0; }
	.rcc-cart-table td:first-child { display: block; padding-bottom: 10px; }
	.rcc-cart-table td:first-child::before { display: none; }
	.rcc-cart-product { gap: 12px; }
}
/* Checkout */
.rcc-checkout { padding: 32px 32px 48px; }
@media (max-width: 640px) { .rcc-checkout { padding: 24px 16px 40px; } }
.rcc-checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .rcc-checkout-layout { grid-template-columns: 1fr; } }
.rcc-checkout-form-col h3, .rcc-checkout-summary-col h3 { font-size: 1.1rem; font-weight: 700; color: var(--rcc-navy); margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--rcc-light); }
.rcc-payment-tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.rcc-payment-tab-btn { padding: 7px 16px; border: 1px solid var(--rcc-border); background: var(--rcc-off); border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer; }
.rcc-payment-tab-btn.active { background: var(--rcc-navy); color: #fff; border-color: var(--rcc-navy); }
.rcc-stripe-element { padding: 12px; border: 1px solid var(--rcc-border); border-radius: 4px; background: #fff; margin-bottom: 14px; min-height: 44px; }
.rcc-payment-notice { padding: 14px 16px; background: var(--rcc-light); border: 1px solid var(--rcc-border); border-radius: 4px; color: var(--rcc-navy); font-size: 14px; margin-bottom: 14px; }
.rcc-card-errors { color: #c33; font-size: 13px; margin-bottom: 10px; min-height: 18px; }
.rcc-summary-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--rcc-off); border-radius: 8px; overflow: hidden; }
.rcc-summary-table td { padding: 10px 14px; border-bottom: 1px solid var(--rcc-border); }
.rcc-summary-table td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.rcc-summary-subtotal td { font-weight: 700; background: var(--rcc-light); }
.rcc-summary-total td { font-weight: 700; font-size: 15px; background: var(--rcc-navy); color: #fff; }
/* Confirmation */
.rcc-confirmation { text-align: center; padding: 60px 24px; max-width: 600px; margin: 0 auto; }
.rcc-confirmation-success { display: flex; flex-direction: column; align-items: center; }
.rcc-checkmark { font-size: 72px; color: #28a745; line-height: 1; margin-bottom: 20px; }
.rcc-confirmation h2 { font-size: 2rem; color: var(--rcc-navy); margin-bottom: 12px; }
.rcc-confirmation-success > p { text-align: center; color: #555; font-size: 1.05rem; margin-bottom: 28px; }
.rcc-confirmation-error { color: #c33; font-size: 1.1rem; }
#rcc-order-summary { text-align: left; width: 100%; max-width: 480px; margin: 0 auto 28px; background: var(--rcc-off); border-radius: 10px; padding: 24px 28px; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
#rcc-order-summary h3 { font-size: 1.1rem; color: var(--rcc-navy); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid #e0e4ed; }
#rcc-order-summary ul { list-style: none; padding: 0; margin: 0 0 14px; }
#rcc-order-summary li { padding: 6px 0; border-bottom: 1px solid #eef0f5; font-size: 0.95rem; color: #333; }
#rcc-order-summary li:last-child { border-bottom: none; }
#rcc-order-summary p { margin: 12px 0 0; font-size: 1rem; color: var(--rcc-navy); padding-top: 10px; border-top: 2px solid var(--rcc-navy); }
/* Lightbox */
#rcc-lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 99999; align-items: center; justify-content: center; gap: 20px; }
#rcc-lightbox[style*="display: block"] { display: flex !important; }
.rcc-lightbox-inner { position: relative; max-width: 80vw; max-height: 90vh; }
#rcc-lightbox-img { max-width: 80vw; max-height: 90vh; object-fit: contain; border-radius: 6px; display: block; }
.rcc-lightbox-close { position: absolute; top: -16px; right: -16px; width: 36px; height: 36px; border-radius: 50%; background: #1a2a5e; border: 2px solid #fff; font-size: 18px; line-height: 1; padding: 0; margin: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 400; transition: opacity .15s; appearance: none; -webkit-appearance: none; }
.rcc-lightbox-close:hover { opacity: .8; }
.rcc-lightbox-arrow { background: #1a2a5e; border: 2px solid #fff; color: #fff; font-size: 20px; line-height: 1; padding: 0; margin: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: opacity .15s; appearance: none; -webkit-appearance: none; }
.rcc-lightbox-arrow:hover { opacity: .8; }
#rcc-main-img { cursor: zoom-in; }
/* Spinner */
.rcc-spinner { width: 40px; height: 40px; border: 4px solid var(--rcc-light); border-top-color: var(--rcc-navy); border-radius: 50%; animation: rcc-spin .8s linear infinite; margin: 0 auto 16px; }
@keyframes rcc-spin { to { transform: rotate(360deg); } }
/* ── Additional mobile fixes (≤640px) ── */
@media (max-width: 640px) {
  /* Hero */
  .rcc-hero { padding: 32px 20px; }
  .rcc-hero-title { font-size: 1.4rem; }
  /* Single product nav */
  .rcc-single-product-nav { flex-direction: column; gap: 10px; }
  .rcc-single-product-nav > div { display: flex; gap: 8px; }
  .rcc-single-product-nav > div .rcc-back-link { flex: 1; text-align: center; }
  .rcc-single-product-nav > a.rcc-btn { width: 100%; text-align: center; box-sizing: border-box; }
  /* Product title & price */
  .rcc-product-title { font-size: 1.3rem; }
  .rcc-product-price { font-size: 1.2rem; }
  /* Add-to-cart form */
  .rcc-atc-form { max-width: 100%; }
  /* Cart footer */
  .rcc-cart-footer { flex-direction: column; align-items: stretch; }
  .rcc-cart-subtotal { text-align: center; }
  .rcc-cart-footer > a.rcc-btn { width: 100%; text-align: center; box-sizing: border-box; }
  /* Cart header */
  .rcc-cart-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .rcc-cart-header > a.rcc-btn { width: 100%; text-align: center; box-sizing: border-box; }
  .rcc-cart-header > div { align-self: center; }
  /* Checkout nav (if present) */
  .rcc-checkout-nav { flex-direction: column; gap: 10px; }
  .rcc-checkout-nav a.rcc-btn { width: 100%; text-align: center; box-sizing: border-box; }
  /* Lightbox — hide arrows, let thumbnails handle navigation */
  .rcc-lightbox-arrow { display: none; }
  #rcc-lightbox-img { max-width: 92vw; max-height: 80vh; }
  /* Confirmation */
  .rcc-confirmation { padding: 40px 16px; }
  .rcc-confirmation h2 { font-size: 1.4rem; }
  /* Order summary padding */
  #rcc-order-summary { padding: 16px; }
  /* Section title */
  .rcc-section-title { font-size: 1.3rem; }
}
