/* — flowersru.ru brand styles — self-contained — */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 14px/1.6 Georgia, "Times New Roman", serif;
  background: #fdf0e4;
  color: #3a3230;
  min-height: 100vh;
}

#wrapper {
  max-width: 1000px;
  margin: 20px auto;
  background: #fff;
  padding: 30px 40px 20px;
  box-shadow: 0 0 24px rgba(0,0,0,.08);
}

#header {
  padding: 4px 0 12px;
  border-bottom: 3px solid #d4353e;
  margin-bottom: 20px;
  overflow: hidden;
}

.contacts-inline {
  float: right;
  text-align: right;
  font-size: 13px;
  padding-top: 6px;
}
.contacts-inline a {
  display: block;
  margin-bottom: 4px;
  color: #d4353e;
  text-decoration: none;
}
.contacts-inline a:hover { color: #a02830; }

.brand {
  font-family: Georgia, serif;
  font-size: 32px;
  color: #d4353e;
  text-decoration: none;
  letter-spacing: -0.5px;
  line-height: 1;
  display: block;
}
.brand small {
  display: block;
  font-size: 14px;
  color: #7a6f68;
  margin-top: 4px;
  font-style: italic;
  font-family: Georgia, serif;
}

.nav-primary {
  list-style: none;
  margin: 20px 0 0;
  padding: 14px 0 0;
  border-top: 1px dotted #d4d0c8;
  font-size: 14px;
  clear: both;
}
.nav-primary li {
  display: inline-block;
  margin: 0 20px 6px 0;
}
.nav-primary a {
  color: #3a3230;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s;
}
.nav-primary a:hover { color: #d4353e; border-color: #d4353e; }
.nav-primary li.current a {
  color: #d4353e;
  border-bottom: 2px solid #d4353e;
  font-weight: bold;
}

#content {
  padding: 8px 0 24px;
  min-height: 400px;
  clear: both;
}

h1, h2, h3, h4 {
  color: #d4353e;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  line-height: 1.25;
}
h1 { font-size: 30px; margin: 12px 0 20px; }
h2 { font-size: 22px; margin: 26px 0 12px; padding-bottom: 6px; border-bottom: 1px dotted #ecdccb; }
h3 { font-size: 18px; margin: 20px 0 10px; }
a { color: #d4353e; text-decoration: underline; }
a:hover { color: #a02830; }

.breadcrumbs {
  font-size: 12px;
  color: #7a6f68;
  margin: 0 0 16px;
  padding: 6px 0;
}
.breadcrumbs a { color: #7a6f68; }
.breadcrumbs a:hover { color: #d4353e; }

.post-author {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  background: #faece2;
  border-left: 3px solid #d4353e;
  margin: 12px 0 22px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
}
.post-author img {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  object-fit: cover;
  flex-shrink: 0;
}
.post-author a { color: #d4353e; font-weight: bold; text-decoration: none; }

.post-body { font-size: 14px; line-height: 1.7; }
.post-body p { margin: 0 0 12px; }
.post-body ul, .post-body ol { margin: 0 0 16px; padding-left: 24px; }
.post-body ul li { margin-bottom: 6px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.product-card {
  border: 1px solid #ecdccb;
  padding: 16px;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
  text-align: center;
  border-radius: 4px;
}
.product-card:hover {
  box-shadow: 0 4px 16px rgba(212,53,62,.15);
  transform: translateY(-2px);
}
.product-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 1px solid #ecdccb;
  margin-bottom: 12px;
  border-radius: 4px;
  display: block;
}
.product-card .title {
  display: block;
  font-size: 15px;
  color: #d4353e;
  margin: 8px 0 4px;
  text-decoration: none;
  font-weight: bold;
  font-family: Georgia, serif;
}
.product-card .title:hover { text-decoration: underline; }
.product-card .price {
  color: #7a6f68;
  font-size: 14px;
  display: block;
  margin-top: 6px;
}

.order-cta {
  background: #fff4ec;
  border: 2px solid #d4353e;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin: 24px 0;
}
.order-cta h3 {
  color: #d4353e;
  margin: 0 0 8px;
  border: none;
  padding: 0;
}
.order-cta p { margin: 0 0 16px; font-size: 14px; }
.order-cta .btn {
  display: inline-block;
  margin: 6px 4px;
  padding: 12px 26px;
  background: #d4353e;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  transition: background .15s;
}
.order-cta .btn:hover { background: #a02830; }
.order-cta .btn.secondary {
  background: #fff;
  color: #d4353e;
  border: 2px solid #d4353e;
}
.order-cta .btn.secondary:hover {
  background: #d4353e;
  color: #fff;
}

.partner-review {
  clear: both;
  margin: 40px 0 20px;
  padding: 24px 28px;
  background: #faece2;
  border-top: 1px solid rgba(212,53,62,.35);
  border-bottom: 1px solid rgba(212,53,62,.35);
  border-radius: 4px;
}
.partner-review h3 {
  color: #d4353e;
  margin: 0 0 10px;
  font-size: 20px;
  border: none;
  padding: 0;
}
.partner-review p {
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.55;
  color: #49433b;
}
.partner-review a {
  color: #d4353e;
  text-decoration: underline;
  font-weight: 600;
}

.site-footer {
  border-top: 2px solid #d4353e;
  padding: 20px 0;
  margin-top: 20px;
  text-align: center;
  color: #7a6f68;
  font-size: 12px;
  clear: both;
}
.site-footer a { color: #7a6f68; }
.site-footer a:hover { color: #d4353e; }
.site-footer .fnav {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.site-footer .fnav li {
  display: inline-block;
  margin: 0 12px 6px;
}
.site-footer p { margin: 6px 0; }

@media (max-width: 768px) {
  #wrapper {
    margin: 0;
    padding: 16px;
    max-width: 100%;
  }
  .contacts-inline {
    float: none;
    text-align: center;
    margin: 12px 0;
    padding-top: 0;
  }
  .brand { font-size: 26px; text-align: center; }
  .brand small { font-size: 12px; }
  .nav-primary { text-align: center; }
  .nav-primary li { display: inline-block; margin: 4px 8px; }
  h1 { font-size: 24px; }
  h2 { font-size: 18px; }
  .product-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
  .product-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 1px solid #ecdccb;
  margin-bottom: 12px;
  border-radius: 4px;
  display: block;
}
}


/* — product page layout — */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 20px 0 40px;
  align-items: start;
}
.product-gallery {
  position: relative;
}
.product-gallery img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ecdccb;
  display: block;
}
.product-info h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.15;
}
.product-info .product-meta {
  color: #7a6f68;
  font-size: 13px;
  margin: 0 0 20px;
}
.product-info .product-price {
  font-family: Georgia, serif;
  font-size: 34px;
  color: #d4353e;
  font-weight: bold;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
}
.product-specs {
  margin: 0 0 24px;
  padding: 20px;
  background: #faece2;
  border-radius: 8px;
  font-size: 14px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px 16px;
}
.product-specs dt {
  color: #7a6f68;
  font-weight: normal;
  margin: 0;
}
.product-specs dd {
  margin: 0;
  color: #3a3230;
}
.product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 14px;
  transition: all .15s;
  flex: 1;
  min-width: 180px;
  justify-content: center;
}
.btn-primary {
  background: #d4353e;
  color: #fff;
  border: 2px solid #d4353e;
}
.btn-primary:hover { background: #a02830; border-color: #a02830; color:#fff; }
.btn-outline {
  background: #fff;
  color: #d4353e;
  border: 2px solid #d4353e;
}
.btn-outline:hover { background: #d4353e; color: #fff; }
.product-note {
  font-size: 12px;
  color: #7a6f68;
  padding: 12px 16px;
  border-left: 3px solid #ecdccb;
  margin: 0 0 20px;
  line-height: 1.5;
}

/* related products */
.related-section {
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px dotted #ecdccb;
}
.related-section h2 {
  border: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 22px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ecdccb;
  border-radius: 6px;
  padding: 12px;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.related-card:hover {
  box-shadow: 0 4px 14px rgba(212,53,62,.15);
  transform: translateY(-2px);
  text-decoration: none;
}
.related-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  margin: 0 0 10px;
}
.related-card .rt {
  display: block;
  font-family: Georgia, serif;
  color: #d4353e;
  font-weight: bold;
  font-size: 14px;
  margin: 0 0 4px;
  line-height: 1.3;
}
.related-card .rp {
  display: block;
  color: #7a6f68;
  font-size: 13px;
}

@media (max-width: 768px) {
  .product-page {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .product-info h1 { font-size: 22px; }
  .product-info .product-price { font-size: 26px; }
  .product-specs { grid-template-columns: 1fr; gap: 4px 0; padding: 16px; }
  .product-specs dt { margin-top: 8px; font-weight: bold; }
  .product-actions { flex-direction: column; }
  .btn-primary, .btn-outline { flex: none; width: 100%; }
  .related-card img { height: 140px; }
}
