/* === CSS Variables === */
:root{
  --accent:#8b4513;
  --muted:#666;
  --bg:#ffffff;
  --card:#fff;
  --radius:8px;
  --gap:18px;
}

/* === Base Styles === */
body{
  margin:0;
  background:var(--bg);
  color:#2c3e50;
  font-family: 'Roboto', 'Arial', 'Helvetica', sans-serif;
  line-height: 1.6;
  font-weight: 400;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'PT Serif', 'Georgia', 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.3;
  color: #2c3e50;
  margin-bottom: 0.8em;
}

h1 {
  font-size: 2.8em;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 1.8em;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 1.4em;
}

h4 {
  font-size: 1.2em;
}

h5 {
  font-size: 1em;
}

h6 {
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === Paragraphs and Text Elements === */
p {
  margin-bottom: 1.2em;
  font-size: 1.1em;
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  /* color: #6b3410; */
  text-decoration: underline;
}

/* === Lists === */
ul, ol {
  margin-bottom: 1.2em;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

/* === Blockquotes === */
blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: #4a5568;
  background: #f8f9fa;
  padding: 1.5em;
  border-radius: 4px;
}

blockquote cite {
  display: block;
  margin-top: 0.5em;
  font-style: normal;
  color: #6b7280;
  font-size: 0.9em;
}

/* === Code === */
code {
  background: #f1f5f9;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #e53e3e;
}

pre {
  background: #1a202c;
  color: #e2e8f0;
  padding: 1.5em;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5em 0;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* === Footer === */
.footer {
  padding: 40px 5%;
  background: #1a202c;
  color: #e2e8f0;
  margin-top: 50px;
  text-align: center;
}

.footer a {
  color: #cbd5e0;
}

.footer a:hover {
  color: #ffffff;
}

/* === Miscellaneous === */
.tags-cloud a {
  display: inline-block;
  padding: 8px 12px;
  margin: 6px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  text-decoration: none;
  color: #4a5568;
  transition: all 0.3s ease;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
}

.tags-cloud a:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}

.carousel-wrap {
  margin-bottom: 30px;
}

/* === Utility Classes === */
.text-accent {
  color: var(--accent);
}

.text-muted {
  color: #6b7280;
}

.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9em;
}

/* === Loading States === */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* === Focus Styles === */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* === Selection Styles === */
::selection {
  background: rgba(139, 69, 19, 0.2);
  color: inherit;
}

::-moz-selection {
  background: rgba(139, 69, 19, 0.2);
  color: inherit;
}
/* Стили для маленьких карточек наборов */
.stamp-sets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stamp-set-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.stamp-set-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.set-card-image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.set-card-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.stamp-set-card:hover .set-card-image img {
    transform: scale(1.05);
}

.no-set-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.set-card-body {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.set-card-title {
  text-align: center;
    margin: 0px 0px 0px 0px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    min-height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.set-card-title a {
    color: #2d3748;
    text-decoration: none;
}

.set-card-title a:hover {
    color: #4a5568;
}

.set-card-info {
    
    text-align: center;
}

.set-stamps-count {
    color: #718096;
    font-size: 12px;
}

.set-card-footer {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.set-price-block {
    display: flex;
    align-items: center;
    gap: 6px;
}

.set-price {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
}

.set-discount {
    background: #e53e3e;
    color: white;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
}

.set-actions {
    flex-shrink: 0;
}

.add-set-to-cart-btn {
    background: #8b4513;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.add-set-to-cart-btn:hover {
    background: #8b4513;
}

.no-sets-found {
    text-align: center;
    padding: 20px;
    color: #718096;
}

/* Адаптивность */
@media (max-width: 768px) {
    .stamp-sets-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .set-card-body {
        padding: 10px;
    }
    
    .set-card-title {
        font-size: 13px;
    }
    
    .set-price {
        font-size: 14px;
    }
    
    .add-set-to-cart-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}
.stamps-grid{
  display: flex;
  flex-direction: row;
}
.stamp-in-set{
  width: 171px !important;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    border-radius: 15px;
    padding: 10px;
    margin: 5px;
}
.stamp-image{
  width: 100%;
  display: flex;
  align-items: stretch;
}
.stamp-details{
 
  text-align: center;
}
.add-single-stamp{
  display: flex;
  flex-direction: column;
  
  background: #6b3410;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
 
  transition: background 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  font-size: 16px;
  max-width: 100%;
  
  font-family: 'Georgia', serif;
}
.add-set-to-cart{
  display: flex;
  flex-direction: column;
  padding: 10px 10px;
  background: #8b4513;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
 
  transition: background 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  font-size: 16px;
  
  
  font-family: 'Georgia', serif;
}
.set-header{
  text-align: center;
  padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #d1d5db;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}
/* Стили для умных кнопок */
.collection-action-btn {
  transition: all 0.3s ease;
}

.collection-action-btn.available {
  background: #8b4513;
  padding: 10px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    font-weight: 500;
    box-sizing: border-box;
    font-family: 'Georgia', serif;
    letter-spacing: 0.3px;
    color: #ffffff;
}

.collection-action-btn.available:hover {
  background: #6b3410;
}

.collection-action-btn.unavailable {
  padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    font-weight: 500;
    box-sizing: border-box;
    font-family: 'Georgia', serif;
    letter-spacing: 0.3px;
  background: #48bb78;
    color: #ffffff;
}

.collection-action-btn.unavailable:hover {
  background: #38a169;
}

.collection-action-btn:disabled {
  background: #a0aec0;
  cursor: not-allowed;
}

/* Стили для модального окна заказа */
.missing-products {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.missing-products h4 {
  margin: 0 0 10px 0;
  color: #c53030;
}

.missing-products ul {
  margin: 0;
  padding-left: 20px;
}

.missing-products li {
  margin-bottom: 5px;
  color: #744210;
}

.collection-order-info {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}
/* Стили для модального окна заказа набора */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.modal-overlay[style*="display: block"] {
  display: flex !important;
}

.modal {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalAppear 0.3s ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes modalAppear {
  from {
      opacity: 0;
      transform: scale(0.9) translateY(-20px);
  }
  to {
      opacity: 1;
      transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  flex: 1;
  font-size: 1.5rem;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: #333;
  background: #f5f5f5;
  border-radius: 50%;
}

.feedback-form {
  padding: 20px;
}

.form-group2 {
  margin-bottom: 20px;
}

.form-group2 label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.form-group2 input,
.form-group2 textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-group2 input:focus,
.form-group2 textarea:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 1px #007cba;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
}

.checkbox-group label {
  margin: 0;
  font-size: 14px;
}

.submit-btn {
  background: #007cba;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
}

.submit-btn:hover {
  background: #005a87;
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Стили для информации о наборе */
.collection-order-info {
  padding: 0 20px 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.collection-order-info h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 1.2rem;
}

.missing-products {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  padding: 15px;
  margin-top: 10px;
}

.missing-products h4 {
  margin: 0 0 10px 0;
  color: #856404;
  font-size: 1rem;
}

.missing-products ul {
  margin: 0;
  padding-left: 20px;
}

.missing-products li {
  margin-bottom: 5px;
  color: #856404;
}
.mobile-contacts{
  border-top: none !important;
}
.cancel,
.view,
.pay{
  margin-left: 5px !important;
  margin-right: 5px !important;
}
/* Избранное — единственный источник стилей иконки «в избранное» теперь в
   mu-plugins/Product card meta.php (wp_head <style>, с !important, чтобы не
   зависеть от агрегации Autoptimize). Здесь дублирующий блок удалён —
   он конфликтовал по @keyframes ctp-fav-pop и «плющил» кружок при клике. */

.product-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-title a {
  flex: 1;
  margin-right: 3px;
}

/* Сетка избранных товаров */
.favorite-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.favorite-product {
  position: relative;
}

/* Универсальное правило для всех изображений товаров */
.products-grid img,
.related-products-grid img,
.product-single-card img,
.woocommerce-loop-product__link img {
    object-fit: contain !important;
    
    height: auto !important;
}

/* Контейнеры с фиксированной высотой */
.product-image,
.related-product-image,
.product-main-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

/* Отключение обрезания WordPress */
.wp-post-image {
    object-fit: contain !important;
   
    height: auto !important;
    
    max-height: 100% !important;
}
.product-image img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  /* max-height: 200px !important; */
  display: block !important;
  margin: 0 auto !important;
}

/* Стили для кнопки в приветственном блоке */
.welcome-button {
    background-color: #0073aa;
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.welcome-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    color: white !important;
}

.welcome-button:active {
    transform: translateY(0);
}

@media (max-width: 900px) {
    .welcome-button {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
}
.woocommerce form .form-row .optional{
  display: none;
}
.woocommerce-error::before,
.woocommerce-message::before{
    display: none;
}