/* =========================================================
   AMAZON PRODUCT PAGE – FULL CSS
   Matches HTML provided earlier
   Includes zoom, layout, buybox, reviews, nav
========================================================= */

:root {
  --nav-bg-dark: #131921;
  --nav-bg-mid: #232f3e;
  --accent-gold: #febd69;
  --accent-gold-dark: #f3a847;
  --accent-yellow: #ffd814;
  --accent-yellow-dark: #f7ca00;
  --accent-orange: #ffa41c;
  --accent-orange-dark: #f08804;
  --text-main: #0f1111;
  --text-muted: #565959;
  --link: #007185;
  --link-hover: #c7511f;
  --price: #b12704;
  --border-soft: #d5d9d9;
  --bg-page: #eaeded;
  --bg-panel: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: var(--link);
  cursor: pointer;
}
a:hover {
  color: var(--link-hover);
}

/* =========================================================
   TOP NAV
========================================================= */

.top-nav {
  background: var(--nav-bg-dark);
  color: #ffffff;
  display: flex;
  align-items: stretch;
  padding: 4px 8px;
  gap: 8px;
  font-size: 12px;
}

.nav-logo {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  cursor: pointer;
  min-width: 120px;
}

.nav-logo-box {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.03em;
}
.nav-logo-small {
  font-size: 11px;
  color: #f3a847;
}

.nav-location {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  cursor: pointer;
  min-width: 140px;
}
.nav-location-icon {
  font-size: 16px;
  margin-right: 4px;
}
.nav-location-text span {
  display: block;
  line-height: 1.1;
}
.nav-location-text .line1 {
  color: #cccccc;
  font-size: 11px;
}

/* Search Bar */
.nav-search {
  flex: 1;
  display: flex;
  align-items: center;
  max-width: 800px;
}
.nav-search-form {
  display: flex;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}
.nav-search-select {
  background: #f3f3f3;
  border: none;
  padding: 0 10px;
  font-size: 12px;
  color: #444;
  border-right: 1px solid #dcdcdc;
}
.nav-search-input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 14px;
  outline: none;
}
.nav-search-btn {
  background: var(--accent-gold);
  border: none;
  padding: 0 15px;
  cursor: pointer;
  font-size: 14px;
}

/* Account, Orders, Cart */
.nav-account, .nav-orders, .nav-cart {
  padding: 4px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nav-line1 {
  font-size: 11px;
  color: #cccccc;
}
.nav-line2 {
  font-size: 13px;
  font-weight: 600;
}
.nav-cart {
  flex-direction: row;
  align-items: center;
  gap: 4px;
}
.nav-cart-icon {
  font-size: 20px;
}

/* SUB NAV */
.sub-nav {
  background: var(--nav-bg-mid);
  color: #ffffff;
  font-size: 12px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sub-nav-item {
  cursor: pointer;
  white-space: nowrap;
}

/* =========================================================
   PAGE WRAPPER
========================================================= */

.page-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 16px;
}

.product-shell {
  background: var(--bg-panel);
  padding: 16px;
  box-shadow: 0 0 3px rgba(0,0,0,0.1);
}

.breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* =========================================================
   PRODUCT LAYOUT (3 COLUMN GRID)
========================================================= */

.product-layout {
  display: grid;
  grid-template-columns: 2fr 3fr 2fr;
  gap: 24px;
}

/* =========================================================
   LEFT: IMAGE GALLERY
========================================================= */

.image-gallery {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
}

/* Thumbnails */
.thumbs-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.thumb {
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  width: 60px;
  height: 60px;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
}
.thumb.active {
  border: 2px solid var(--accent-orange);
}

/* Main image + zoom support */
.main-image {
  border: 1px solid var(--border-soft);
  background: #ffffff;
  padding: 12px;
  position: relative;
  text-align: center;
  overflow: hidden;
  cursor: zoom-in;
}
.main-image img {
  max-width: 100%;
  height: auto;
  transition: transform 0.2s ease-out;
}
.main-image.zoomed img {
  transform: scale(2.4);
}

/* Lens */
.magnifier-lens {
  position: absolute;
  pointer-events: none;
  width: 150px;
  height: 150px;
  border: 2px solid #ccc;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-size: 250% 250%;
  display: none;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

/* Zoom Hint */
.hover-hint {
  font-size: 11px;
  margin-top: 8px;
  color: var(--text-muted);
}

/* =========================================================
   MIDDLE COLUMN – PRODUCT INFO
========================================================= */

.product-info {
  font-size: 14px;
}

.product-title {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 6px;
}

.brand-line {
  margin-bottom: 6px;
  font-size: 13px;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 12px;
}
.stars {
  color: #ffa41c;
  font-size: 16px;
}

.badge-line {
  font-size: 12px;
  margin-bottom: 6px;
}
.badge-best-seller {
  display: inline-block;
  background: #f69931;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

.divider {
  border-bottom: 1px solid #e7e7e7;
  margin: 12px 0;
}

/* Price */
.price-block {
  margin: 12px 0;
}
.deal-line {
  color: #cc0c39;
  font-size: 14px;
}
.price-main {
  color: var(--price);
  font-size: 28px;
  font-weight: 600;
}
.price-extra {
  font-size: 12px;
  color: var(--text-muted);
}
.tax-line {
  font-size: 12px;
  margin-top: 4px;
}

/* Features */
.bullet-list {
  margin-left: 18px;
  font-size: 13px;
  margin-bottom: 10px;
}
.bullet-list li {
  margin-bottom: 4px;
}
.small-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* =========================================================
   BUYBOX (RIGHT COLUMN)
========================================================= */

.buy-box {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 15px;
  background: white;
  height: fit-content;
}

.buybox-price-line {
  font-size: 18px;
  margin-bottom: 4px;
}
.buybox-price-line .currency {
  font-size: 12px;
  vertical-align: super;
}
.buybox-price-line .amount {
  font-size: 22px;
  font-weight: 700;
  color: var(--price);
}

.buybox-tax {
  font-size: 12px;
  color: var(--text-muted);
}
.buybox-stock {
  font-size: 13px;
  font-weight: bold;
  color: #007600;
  margin-top: 6px;
}
.buybox-delivery {
  font-size: 12px;
  margin-top: 6px;
}
.buybox-location {
  font-size: 12px;
  margin-top: 10px;
}

/* Qty */
.qty-row {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-select {
  padding: 4px;
  font-size: 13px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  width: 100%;
  padding: 10px;
  border-radius: 50px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent-yellow);
  border-color: var(--accent-yellow-dark);
}
.btn-primary:hover {
  background: var(--accent-yellow-dark);
}
.btn-secondary {
  background: var(--accent-orange);
  border-color: var(--accent-orange-dark);
}
.btn-secondary:hover {
  background: var(--accent-orange-dark);
}

.buybox-small {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

.buybox-meta {
  margin-top: 12px;
  font-size: 12px;
  border-top: 1px solid #e7e7e7;
  padding-top: 10px;
}

.secure-link {
  margin-top: 6px;
  font-size: 12px;
  color: var(--link);
}

/* =========================================================
   DETAILS SECTION
========================================================= */

.details-section {
  margin-top: 28px;
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

.details-grid {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 24px;
}

.details-heading {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.spec-table th {
  background: #f7f7f7;
  width: 35%;
  padding: 8px;
  text-align: left;
}
.spec-table td {
  padding: 8px;
  border: 1px solid #e3e3e3;
}

/* Description */
.description-block h3 {
  margin-top: 0;
  font-size: 17px;
  margin-bottom: 10px;
}
.description-block p {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
}

/* =========================================================
   REVIEWS SECTION
========================================================= */

.reviews-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.reviews-section h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.review {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.review-stars {
  color: #ffa41c;
  font-size: 13px;
}
.review-title {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
}
.review-author {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.review p {
  font-size: 13px;
  margin: 0 0 10px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
  .buy-box {
    max-width: 350px;
    margin-top: 20px;
  }
}

@media (max-width: 750px) {
  .top-nav {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .nav-search {
    order: 4;
    width: 100%;
  }
  .image-gallery {
    grid-template-columns: 60px 1fr;
  }
  .details-grid {
    grid-template-columns: 1fr;
  }
}
