/* Accessibility */
.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 1rem;
  padding: 0.5rem;
  z-index: 999;
}

/* visually-hidden helper */
.visually-hidden {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Form Focus Styling */
input:focus,
button:focus,
a:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}
  
/* Focus visible for form elements */
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Button states for accessibility */
.color-btn[aria-pressed="true"],
.storage-btn[aria-pressed="true"] {
    border: 2px solid #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.3);
}

.thumb.active {
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.3);
}

/* Quantity controls */
.qty-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

/*quantity controls*/
.qty-box button {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.qty-box input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    background: #fff;
}

/* Fieldset Accessibility */
fieldset {
    border: none;
    box-shadow: none;
    background: transparent;
    margin: 0;
    padding: 0;
}

legend {
    display: block;
    width: 100%;
    padding: 0;
    margin-bottom: 0;
}

/* product-detail-sectio*/

.product-detail-section {
  width: 100%;
  padding: 70px 0;
  background: #f5f5f5;
}

.product-detail-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}

.product-gallery .main-image {
  background: #ececec;
  padding: 20px;
  margin-bottom: 18px;
}

.product-gallery .main-image img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  display: block;
}

.thumbnail-list {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.thumb {
  width: 110px;
  height: 110px;
  border: 1px solid #ddd;
  background: #ececec;
  padding: 8px;
  cursor: pointer;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb.active {
  border: 2px solid #111;
}

.product-detail-info h1 {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #111;
}

.product-price-wrap {
  margin-bottom: 18px;
}

.product-price {
  font-size: 26px;
  color: #c17b68;
  font-weight: 500;
}

.product-desc {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 18px 0;
  margin-bottom: 18px;
}


.product-desc p {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

.product-description-box {
  margin-top: 12px;
}

.product-description-short {
  margin-bottom: 10px;
  line-height: 1.6;
}

.read-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-size: 16px;
  font-style: italic;
  color: #0066cc;
}

.read-more-btn:hover {
  opacity: 0.8;
}

.technical-data {
  margin-top: 14px;
  padding: 14px 16px;
  background: #f7f7f7;
  border-radius: 12px;
}

.technical-data ul {
  margin: 0;
  padding-left: 18px;
}

.technical-data li {
  margin-bottom: 6px;
  line-height: 1.5;
  list-style-type: circle;
}

.serie {
  margin-bottom: 28px;
}

.serie p {
  font-size: 16px;
  margin-bottom: 14px;
  color: #222;
}

.option-group {
  margin-bottom: 28px;
}

.option-group h2 {
  font-size: 16px;
  margin-bottom: 14px;
  color: #222;
}

.color-options,
.storage-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.color-btn {
  width: 54px;
  height: 54px;
  border: 2px solid #ccc;
  cursor: pointer;
  border-radius: 8px;
}

.color-btn.active {
  border-color: #1f5da8;
  box-shadow: 0 0 0 2px rgba(31, 93, 168, 0.15);
}


.storage-btn {
  min-width: 100px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #aaa;
  background: #fff;
  cursor: pointer;
  border-radius: 8px;
  font-size: 16px;
}

.storage-btn.active {
  border: 2px solid #1f5da8;
  color: #1f5da8;
}

.product-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

.qty-box {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  height: 56px;
}

.qty-box button {
  width: 56px;
  height: 56px;
  border: none;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
}

.qty-box input {
  width: 70px;
  height: 56px;
  border: none;
  text-align: center;
  font-size: 16px;
  background: #fff;
}

.add-to-cart-btn {
  flex: 1;
  height: 56px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 10px;
}

.add-to-cart-btn:hover {
  background: #e9ecef;
}

.buy-now-btn {
  display: block;
  width: 100%;  
  padding: 0 16px;
  height: 56px;
  line-height: 56px;
  border: none;
  background: #000;
  color: #fff;
  font-size: 16px;
  letter-spacing: 1px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s ease;
}

.buy-now-btn:hover {
  background: #333;
}


/* CART OVERLAY */ 
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 9998;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 540px;
  max-width: 100%;
  height: 100dvh;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 24px 12px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.cart-header h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.cart-shipping-text {
  margin: 0;
  color: #555;
  font-size: 14px;
}

.cart-close {
  border: none;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

.shipping-progress-wrap {
  padding: 12px 24px 18px;
}

.shipping-progress {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 999px;
  overflow: hidden;
}

.shipping-progress-bar {
  height: 100%;
  width: 0%;
  background: #111;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 20px;
  -webkit-overflow-scrolling: touch;
}

.cart-empty {
  color: #474747;
  font-size: 14px;
  margin-top: 10px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}

.cart-item img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  background: #f6f6f6;
  border-radius: 8px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.cart-item-info small {
  display: block;
  color: #666;
  margin-bottom: 8px;
  font-size: 14px;
}

.cart-item-price {
  font-size: 16px;
  margin-bottom: 12px;
}

.cart-item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cart-item-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  height: 40px;
}

.cart-item-qty button {
  width: 40px;
  height: 40px;
  border: none;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
}

.cart-item-qty span {
  min-width: 40px;
  text-align: center;
  font-size: 16px;
}

.remove-item-btn {
  border: none;
  background: transparent;
  color: #999;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}

.cart-footer {
  border-top: 1px solid #eee;
  padding: 18px 24px 24px;
  background: #fff;
  flex-shrink: 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 18px;
}

.cart-total strong {
  font-size: 18px;
}

.cart-tax-note {
  margin: 0 0 18px;
  color: #666;
  font-size: 14px;
}

.cart-footer-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkout-btn,
.view-cart-btn {
  height: 52px;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.checkout-btn {
  background: #111;
  color: #fff;
}

.view-cart-btn {
  border: 2px solid #111;
  color: #111;
  background: #fff;
}

@media (max-width: 640px) {
  .cart-drawer {
    width: 100%;
  }

  .cart-item {
    flex-direction: column;
  }

  .cart-item img {
    width: 100%;
    height: 180px;
  }

  .cart-footer-buttons {
    grid-template-columns: 1fr;
  }
}

/* RESPONSIVE*/
@media (max-width: 1024px) {
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .product-detail-info h1 {
    font-size: 36px;
  }

  .product-price {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .product-detail-section {
    padding: 45px 0;
  }

  .product-detail-container {
    width: 92%;
  }

  .thumbnail-list {
    gap: 10px;
  }

  .thumb {
    width: 84px;
    height: 84px;
  }

  .product-detail-info h1 {
    font-size: 30px;
  }

  .product-price {
    font-size: 28px;
  }

  .product-desc p {
    font-size: 16px;
  }

  .product-actions {
    flex-direction: column;
  }

  .cart-drawer {
    width: 100%;
  }

  .add-to-cart-btn {
  padding: 15px 0;
  }
}

/* Camera section */
.camera-story-section {
  width: 100%;
  padding: 80px 0 100px;
  background: #f5f5f5;
}

.camera-story-container {
  width: min(92%, 1400px);
  margin: 0 auto;
}

.camera-story-intro {
  text-align: center;
  max-width: 980px;
  margin: 0 auto 48px;
}

.camera-story-kicker {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1f4f6b;
}

.camera-story-intro h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.08;
  font-weight: 700;
  color: #16384c;
}

.camera-story-lead {
  margin: 0 auto;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.7;
  color: #334155;
}

.camera-story-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(320px, 0.95fr);
  gap: 32px;
  align-items: stretch;
}

.camera-story-media {
  background: #e5e7eb;
  border-radius: 28px;
  overflow: hidden;
  min-height: 720px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.camera-story-media img {
  width: 100%;
  height: 100%;
  min-height: 720px;
  object-fit: cover;
  display: block;
}

.camera-story-content {
  background: #0f172a;
  color: #ffffff;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.camera-spec-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 22px 22px 20px;
}

.camera-spec-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
  color: #ffffff;
}

.camera-spec-list {
  margin: 0;
  padding-left: 20px;
}

.camera-spec-list li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.7;
  color: #e5e7eb;
}

.camera-spec-list li:last-child {
  margin-bottom: 0;
}

/* Tablet */
@media (max-width: 1024px) {
  .camera-story-section {
    padding: 64px 0 84px;
  }

  .camera-story-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .camera-story-media,
  .camera-story-media img {
    min-height: 560px;
  }

  .camera-story-content {
    padding: 28px;
  }

  .camera-spec-card h3 {
    font-size: 21px;
  }

  .camera-spec-list li {
    font-size: 15px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .camera-story-section {
    padding: 56px 0 72px;
  }

  .camera-story-intro {
    margin-bottom: 32px;
  }

  .camera-story-kicker {
    font-size: 16px;
  }

  .camera-story-intro h2 {
    font-size: 40px;
  }

  .camera-story-lead {
    font-size: 16px;
    line-height: 1.65;
  }

  .camera-story-media,
  .camera-story-media img {
    min-height: 580px;
  }

  .camera-story-content {
    padding: 20px;
    border-radius: 22px;
  }

  .camera-spec-card {
    padding: 18px;
    border-radius: 16px;
  }

  .camera-spec-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .camera-spec-list {
    padding-left: 18px;
  }

  .camera-spec-list li {
    font-size: 14px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .camera-story-container {
    width: 94%;
  }

  .camera-story-intro h2 {
    font-size: 32px;
  }

  .camera-story-media,
  .camera-story-media img {
    min-height: 320px;
  }
}
