/*
Theme Name: Digitek Store - Ready Pro Style
Theme URI: https://digitekstore.it
Description: Tema e-commerce personalizzato in stile Ready Pro / Componenti Digitali per ricambi smartphone, tablet e accessori.
Author: Digitek
Template: storefront
Version: 1.0.0
*/

:root {
  --rp-blue-dark: #0a4b82;
  --rp-blue-primary: #0e63a8;
  --rp-blue-light: #e6f1f8;
  --rp-blue-link: #0070ba;
  --rp-yellow: #f59e0b;
  --rp-yellow-hover: #d97706;
  --rp-green: #16a34a;
  --rp-red-price: #dc2626;
  --rp-gray-bg: #f8fafc;
  --rp-border: #cbd5e1;
}

body {
  background-color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #334155;
}

/* TOP BAR */
.rp-topbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 4px 16px;
  font-size: 11px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rp-topbar-right {
  display: flex;
  gap: 15px;
  align-items: center;
}
.rp-lang-switch a {
  text-decoration: none;
  font-weight: 600;
  margin-left: 6px;
  color: #475569;
}
.rp-lang-switch a.active {
  color: var(--rp-blue-primary);
  text-decoration: underline;
}

/* HEADER PRINCIPALE */
.rp-main-header {
  background: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid #e2e8f0;
}
.rp-logo a {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rp-logo-badge {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 18px;
}
.rp-logo-subtitle {
  font-size: 10px;
  color: #64748b;
  font-weight: normal;
  display: block;
}

/* BARRA DI RICERCA READY PRO */
.rp-search-bar {
  flex: 1;
  max-width: 650px;
  position: relative;
}
.rp-search-form {
  display: flex;
  border: 2px solid var(--rp-blue-primary);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.rp-search-form input[type="search"] {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}
.rp-search-form button {
  background: var(--rp-blue-primary);
  color: #ffffff;
  border: none;
  padding: 0 22px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.rp-search-form button:hover {
  background: var(--rp-blue-dark);
}

/* ACCOUNT & CARRELLO IN HEADER */
.rp-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rp-account-btn, .rp-cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--rp-border);
  border-radius: 6px;
  background: #ffffff;
  color: #1e293b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.rp-account-btn:hover, .rp-cart-btn:hover {
  background: var(--rp-blue-light);
  border-color: var(--rp-blue-primary);
}
.rp-cart-btn {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.rp-cart-price {
  color: var(--rp-red-price);
  font-weight: 800;
}

/* NAV BAR BLU ORIZZONTALE */
.rp-navbar {
  background: var(--rp-blue-dark);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.rp-nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
}
.rp-nav-item {
  color: #ffffff;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s;
}
.rp-nav-item:hover, .rp-nav-item.active {
  background: var(--rp-blue-primary);
}

/* CONTENITORE CENTRALE */
.site-content {
  max-width: 1340px;
  margin: 20px auto;
  padding: 0 16px;
}

/* SIDEBAR READY PRO */
.rp-sidebar-box {
  background: #ffffff;
  border: 1px solid var(--rp-border);
  border-radius: 6px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.rp-sidebar-title {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  color: #0f172a;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rp-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rp-category-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}
.rp-category-item a:hover {
  background: var(--rp-blue-light);
  color: var(--rp-blue-primary);
}

/* SCHEDE PRODOTTO IN STILE COMPONENTI DIGITALI / READY PRO */
ul.products li.product {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 14px !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}
ul.products li.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08) !important;
  border-color: #94a3b8 !important;
}
ul.products li.product .woocommerce-loop-product__title {
  color: var(--rp-blue-link) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  min-height: 38px;
  margin-bottom: 8px !important;
}
.rp-product-meta {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 8px;
  line-height: 1.4;
}
.rp-product-meta span {
  display: block;
}
.rp-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}
.rp-stock-in {
  color: var(--rp-green);
}
.rp-stock-out {
  color: #ef4444;
}
ul.products li.product .price {
  color: var(--rp-red-price) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  margin-bottom: 10px !important;
  display: block !important;
}
ul.products li.product .price span.iva-note {
  font-size: 10px;
  color: #94a3b8;
  font-weight: normal;
  margin-left: 4px;
}
.rp-add-to-cart-btn {
  background: var(--rp-yellow) !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  border-radius: 6px !important;
  padding: 8px 14px !important;
  text-transform: uppercase !important;
  font-size: 12px !important;
  text-align: center !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  width: 100% !important;
}
.rp-add-to-cart-btn:hover {
  background: var(--rp-yellow-hover) !important;
}

/* SINGOLO PRODOTTO */
.product .summary .price {
  font-size: 26px !important;
  color: var(--rp-red-price) !important;
  font-weight: 900 !important;
}
.rp-single-details-box {
  background: #f8fafc;
  border: 1px solid var(--rp-border);
  border-radius: 6px;
  padding: 14px;
  margin: 16px 0;
  font-size: 12px;
}
.rp-single-details-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.rp-shipping-note {
  background: #eff6ff;
  border-left: 4px solid var(--rp-blue-primary);
  padding: 10px 14px;
  font-size: 12px;
  margin: 14px 0;
  color: #1e40af;
  font-weight: 600;
}
.rp-payment-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 14px 0;
}
.rp-payment-badge {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #475569;
}

/* FOOTER */
.rp-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 20px 20px;
  margin-top: 60px;
  font-size: 12px;
}
.rp-footer a {
  color: #cbd5e1;
  text-decoration: none;
}
.rp-footer a:hover {
  color: #38bdf8;
}
