/*
Theme Name: Jessica Amazon Crew
Theme URI: https://x.ai
Author: Jessica & Grok Crew
Author URI: https://x.ai
Description: Temă inteligentă inspirată de Amazon.it, creată de la zero pentru echipajul nostru. Design modern, product-ready, affiliate-friendly. Construim împreună până la 350k.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jessica-amazon
Tags: e-commerce, amazon, affiliate, custom-menu, featured-images, threaded-comments, translation-ready, responsive
*/

/* ============================================================
   Jessica Amazon Crew Theme - Core Styles
   Inspired by Amazon.it - Clean, fast, conversion-focused
   ============================================================ */

:root {
  --amz-orange: #FF9900;
  --amz-orange-hover: #e68a00;
  --amz-dark: #131921;
  --amz-dark-2: #232f3e;
  --amz-light: #f3f3f3;
  --amz-white: #ffffff;
  --amz-text: #0F1111;
  --amz-link: #007185;
  --amz-border: #d5d9d9;
  --amz-success: #067D62;
  --amz-radius: 8px;
  --amz-shadow: 0 2px 5px rgba(15,17,17,.15);
  --header-height: 60px;
  --font-main: "Amazon Ember", "Arial", "Helvetica Neue", Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--amz-text);
  background: var(--amz-light);
  line-height: 1.5;
  font-size: 14px;
}

a {
  color: var(--amz-link);
  text-decoration: none;
}
a:hover {
  color: var(--amz-orange);
  text-decoration: underline;
}

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

/* ========== HEADER ========== */
.amz-header {
  background: var(--amz-dark);
  color: var(--amz-white);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.amz-header-top {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  gap: 12px;
  max-width: 1500px;
  margin: 0 auto;
}

.amz-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--amz-white);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.amz-logo span {
  color: var(--amz-orange);
}

.amz-search-form {
  flex: 1;
  display: flex;
  max-width: 700px;
}
.amz-search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 15px;
  outline: none;
}
.amz-search-form button {
  background: var(--amz-orange);
  border: none;
  padding: 0 16px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  color: var(--amz-dark);
  font-weight: 700;
}
.amz-search-form button:hover {
  background: var(--amz-orange-hover);
}

.amz-nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}
.amz-nav-right a {
  color: var(--amz-white);
  text-decoration: none;
}
.amz-nav-right a:hover {
  color: var(--amz-orange);
}

.amz-cart {
  position: relative;
  font-size: 22px;
}
.amz-cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--amz-orange);
  color: var(--amz-dark);
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Secondary nav */
.amz-nav-secondary {
  background: var(--amz-dark-2);
  padding: 8px 16px;
  font-size: 13px;
}
.amz-nav-secondary ul {
  list-style: none;
  display: flex;
  gap: 18px;
  max-width: 1500px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.amz-nav-secondary a {
  color: var(--amz-white);
  text-decoration: none;
}
.amz-nav-secondary a:hover {
  color: var(--amz-orange);
  text-decoration: underline;
}

/* ========== MAIN LAYOUT ========== */
.amz-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 16px;
}

.amz-hero {
  background: linear-gradient(135deg, #232f3e 0%, #131921 100%);
  color: white;
  border-radius: var(--amz-radius);
  padding: 40px 30px;
  margin-bottom: 24px;
  text-align: center;
}
.amz-hero h1 {
  font-size: 28px;
  margin-bottom: 10px;
}
.amz-hero p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 20px;
}

/* ========== PRODUCT GRID ========== */
.amz-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.amz-product-card {
  background: var(--amz-white);
  border: 1px solid var(--amz-border);
  border-radius: var(--amz-radius);
  padding: 14px;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.amz-product-card:hover {
  box-shadow: var(--amz-shadow);
  transform: translateY(-2px);
}

.amz-product-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: #fafafa;
  border-radius: 4px;
  overflow: hidden;
}
.amz-product-image img {
  max-height: 160px;
  object-fit: contain;
}

.amz-product-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--amz-text);
  margin-bottom: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.amz-product-title a {
  color: inherit;
  text-decoration: none;
}
.amz-product-title a:hover {
  color: var(--amz-orange);
}

.amz-product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #565959;
}
.amz-stars {
  color: var(--amz-orange);
  letter-spacing: 1px;
}

.amz-product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--amz-text);
  margin-bottom: 10px;
}
.amz-product-price small {
  font-size: 12px;
  font-weight: 400;
  color: #565959;
}

.amz-btn {
  display: inline-block;
  background: linear-gradient(to bottom, #f7dfa5, var(--amz-orange));
  border: 1px solid #c89411;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--amz-text);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.amz-btn:hover {
  background: linear-gradient(to bottom, #f5d78e, #e68a00);
  text-decoration: none;
  color: var(--amz-text);
}
.amz-btn-primary {
  width: 100%;
  margin-top: auto;
}

/* ========== SINGLE PRODUCT / ARTICLE ========== */
.amz-single {
  background: var(--amz-white);
  border-radius: var(--amz-radius);
  padding: 24px;
  border: 1px solid var(--amz-border);
}

.amz-single-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
@media (max-width: 768px) {
  .amz-single-header {
    grid-template-columns: 1fr;
  }
}

.amz-single-gallery {
  background: #fafafa;
  border-radius: var(--amz-radius);
  padding: 20px;
  text-align: center;
}
.amz-single-gallery img {
  max-height: 400px;
  margin: 0 auto;
}

.amz-single-info h1 {
  font-size: 24px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.amz-single-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #565959;
}

.amz-price-big {
  font-size: 28px;
  font-weight: 700;
  margin: 16px 0;
}

.amz-buy-box {
  background: #f7f7f7;
  border: 1px solid var(--amz-border);
  border-radius: var(--amz-radius);
  padding: 16px;
  margin-top: 20px;
}

.amz-content {
  margin-top: 30px;
  line-height: 1.7;
  font-size: 15px;
}
.amz-content h2, .amz-content h3 {
  margin: 24px 0 12px;
}
.amz-content p {
  margin-bottom: 14px;
}
.amz-content ul, .amz-content ol {
  margin: 0 0 16px 20px;
}

/* Comments / Reviews section */
.amz-reviews {
  margin-top: 40px;
  border-top: 1px solid var(--amz-border);
  padding-top: 30px;
}
.amz-reviews h2 {
  font-size: 20px;
  margin-bottom: 20px;
}
.amz-review {
  border-bottom: 1px solid #eee;
  padding: 16px 0;
}
.amz-review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.amz-review-author {
  font-weight: 600;
}
.amz-review-date {
  color: #565959;
  font-size: 12px;
}
.amz-review-body {
  font-size: 14px;
  line-height: 1.6;
}

/* ========== FOOTER ========== */
.amz-footer {
  background: var(--amz-dark-2);
  color: #ddd;
  margin-top: 40px;
  padding: 40px 16px 20px;
  font-size: 13px;
}
.amz-footer-inner {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
}
.amz-footer h4 {
  color: white;
  margin-bottom: 12px;
  font-size: 14px;
}
.amz-footer ul {
  list-style: none;
}
.amz-footer a {
  color: #ddd;
  display: block;
  margin-bottom: 6px;
}
.amz-footer a:hover {
  color: var(--amz-orange);
  text-decoration: underline;
}
.amz-footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #3a4553;
  color: #999;
  font-size: 12px;
}

/* ========== UTILITIES ========== */
.amz-section-title {
  font-size: 20px;
  margin: 24px 0 16px;
  font-weight: 700;
}

.amz-badge {
  display: inline-block;
  background: var(--amz-orange);
  color: var(--amz-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .amz-header-top {
    flex-wrap: wrap;
  }
  .amz-search-form {
    order: 3;
    width: 100%;
    max-width: none;
  }
  .amz-nav-right {
    gap: 12px;
  }
  .amz-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

/* WordPress specific */
.wp-block-image img {
  height: auto;
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
