* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #000;
  color: #fff;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  border-bottom: 1px solid #222;
}

header h1 {
  font-size: 26px;
  letter-spacing: 2px;
}

.cart-btn {
  border: 1px solid #444;
  padding: 10px 18px;
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

.cart-btn:hover {
  background: white;
  color: black;
}

/* PRODUCTS */
.product-grid {
  max-width: 1200px;
  margin: 50px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  padding: 0 20px;
}

.card {
  background: linear-gradient(180deg, #111, #0a0a0a);
  border: 1px solid #222;
  padding: 20px;
  text-align: center;
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #555;
}

.card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card p {
  font-size: 16px;
  margin-bottom: 14px;
}

.card button {
  background: white;
  color: black;
  padding: 12px 18px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.card button:hover {
  background: #ccc;
}

/* ===== CART PAGE FIX ===== */

.cart-container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
  color: #fff;
}

.cart-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: #1a1a1a;
  color: #ffffff;
  border-radius: 10px;
  align-items: center;
}

.cart-item img {
  width: 100px;
  border-radius: 6px;
}

.cart-item h4 {
  margin: 0 0 5px;
}

.cart-item p {
  margin: 4px 0;
}

.cart-item button {
  margin-right: 6px;
  padding: 6px 12px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.cart-item button:hover {
  background: #e0e0e0;
}

#total {
  margin-top: 20px;
  font-size: 20px;
  font-weight: bold;
}

#buy-btn:hover{
  background-color: rgb(30, 96, 30);

}

#buy-btn{
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
font-family: Arial, Helvetica, sans-serif;
font-weight: 200;
font-size: larger;

}

.brand-logo.luxury {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 8px;
  color: #ffffff;
  font-family: "Georgia", serif;
}
/* ===== HEADER UPGRADE ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0f0f0f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  border-bottom: 1px solid #222;
}

.logo {
  font-size: 26px;
  letter-spacing: 3px;
  font-weight: 700;
}

.header-nav {
  display: flex;
  gap: 28px;
}

.header-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-nav a:hover {
  color: #fff;
}

.cart-btn {
  color: #000;
  background: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.cart-btn:hover {
  background: #e5e5e5;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .site-header {
    padding: 12px 20px;
  }
}

/* ===== HEADER ANIMATION ===== */

.header-accent {
  height: 2px;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    #ffffff,
    transparent
  );
  background-size: 200% 100%;
  animation: slideLine 3s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes slideLine {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
/* ============================= */
/* ===== MOBILE RESPONSIVE ===== */
/* ============================= */

@media (max-width: 768px) {

  /* HEADER */
  .site-header {
    padding: 12px 16px;
  }

  .logo{
    font-size: 22px;
    letter-spacing: 3px;
  }

  .header-nav {
    display: none; /* hide menu on mobile */
  }

  .cart-btn {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 18px;
  }

  /* PRODUCT GRID */
  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .card {
    padding: 10px;
  }

  .card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }

  .card h3 {
    font-size: 14px;
    margin: 6px 0;
  }

  .card p {
    font-size: 13px;
  }

  .card button {
    padding: 8px;
    font-size: 13px;
  }

  /* CART PAGE */
  .cart-container {
    padding: 16px;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item img {
    width: 100%;
    max-width: 200px;
  }

  #buy-btn {
    font-size: 16px;
    padding: 12px;
  }
}

/* EXTRA SMALL PHONES */
@media (max-width: 420px) {

  .product-grid {
    grid-template-columns: 1fr;
  }

  .logo{
    font-size: 20px;
  }

}
.product-page {
  display: flex;
  gap: 40px;
  padding: 40px;
  color: #fff;
}

.product-image img {
  width: 350px;
  border-radius: 10px;
}

.product-info {
  max-width: 400px;
}

.product-info .price {
  font-size: 22px;
  margin: 10px 0;
}

.product-info input {
  width: 60px;
  padding: 6px;
  margin: 10px 0;
}

.product-info button {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  font-size: 16px;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
  .product-page {
    flex-direction: column;
    padding: 20px;
  }

  .product-image img {
    width: 100%;
  }
}
/* ===== CONTACT SECTION ===== */

.contact-section {
  padding: 60px 20px;
  text-align: center;
  background: #0f0f0f;
  color: #fff;
  border-top: 1px solid #222;
}

.contact-section h2 {
  font-size: 26px;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.contact-section p {
  margin: 8px 0;
  font-size: 15px;
  color: #ccc;
}

.contact-section a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.contact-section a:hover {
  text-decoration: underline;
}

.contact-note {
  margin-top: 20px;
  font-size: 14px;
  color: #aaa;
}

/* ===== BRAND ADVERTISEMENT ===== */

.brand-ad {
  background: linear-gradient(
      rgba(0, 0, 0, 0.6),
      rgba(0, 0, 0, 0.9)
    ),
    url("https://images.unsplash.com/photo-1512436991641-6745cdb1723f");
  background-size: cover;
  background-position: center;
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.brand-ad-content {
  max-width: 700px;
  margin: auto;
}

.brand-ad h2 {
  font-size: 36px;
  letter-spacing: 4px;
  margin-bottom: 15px;
}

.brand-ad p {
  font-size: 16px;
  color: #dddddd;
  margin-bottom: 30px;
  line-height: 1.6;
}

.brand-ad-btn {
  display: inline-block;
  padding: 12px 26px;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.brand-ad-btn:hover {
  background: #e5e5e5;
}

/* Mobile */
@media (max-width: 768px) {
  .brand-ad {
    padding: 60px 16px;
  }

  .brand-ad h2 {
    font-size: 26px;
    letter-spacing: 2px;
  }

  .brand-ad p {
    font-size: 14px;
  }
}
.seo-text {
  padding: 40px 20px;
  color: #ccc;
  max-width: 900px;
  margin: auto;
  line-height: 1.7;
}

.seo-text h2 {
  color: #fff;
  margin-bottom: 10px;
}
/* ===== SIZE SELECTOR ===== */

.size-selector {
  margin: 20px 0;
}

.size-selector p {
  margin-bottom: 10px;
  font-size: 14px;
  color: #ccc;
}

.sizes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-btn {
  padding: 10px 16px;
  border: 1px solid #444;
  background: transparent;
  color: #fff;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.size-btn:hover {
  border-color: #fff;
}

.size-btn.active {
  background: #fff;
  color: #000;
  border-color: #fff;
  font-weight: 600;
}
/* ===== DISABLED ADD TO CART ===== */

button:disabled {
  background: #333 !important;
  color: #888 !important;
  cursor: not-allowed !important;
  border: 1px solid #444;
}
/* ===== SIZE SELECTOR ===== */

.size-selector {
  margin: 16px 0;
}

.size-selector p {
  margin-bottom: 8px;
  font-size: 14px;
  color: #ccc;
}

.sizes {
  display: flex;
  gap: 10px;
}

.size-btn {
  padding: 8px 14px;
  border: 1px solid #555;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.2s;
}

.size-btn:hover {
  border-color: #fff;
}

.size-btn.active {
  background: #fff;
  color: #000;
  font-weight: 600;
}
/* ===== PRODUCT IMAGE ZOOM ===== */

.product-image {
  width: 380px;
  overflow: hidden;
  border-radius: 12px;
}

.product-image img {
  width: 100%;
  transition: transform 0.4s ease;
  cursor: zoom-in;
}

/* Hover zoom (desktop only) */
@media (min-width: 769px) {
  .product-image:hover img {
    transform: scale(1.25);
  }
}

/* Mobile safe */
@media (max-width: 768px) {
  .product-image {
    width: 100%;
  }

  .product-image img {
    cursor: default;
    transform: scale(1.35);
  }
}

/* ===== STICKY ADD TO CART ===== */

.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0f0f0f;
  border-top: 1px solid #222;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
}

.sticky-price {
  font-size: 16px;
  font-weight: 600;
}

.sticky-bar button {
  flex: 1;
  padding: 12px;
  font-size: 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

#sticky-add-btn {
  background: #fff;
  color: #000;
}

#sticky-buy-btn {
  background: #1e7e34;
  color: #fff;
}

.sticky-bar button:disabled {
  background: #333;
  color: #777;
  cursor: not-allowed;
}

/* Hide on desktop */
@media (min-width: 769px) {
  .sticky-bar {
    display: none;
  }
}

.hidden {
  display: none;
}
/* ============================= */
/* ===== CART MOBILE FIX ======= */
/* ============================= */

@media (max-width: 768px) {

  .cart-container {
    padding: 16px;
    max-width: 100%;
  }

  .cart-item {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
  }

  .cart-item img {
    width: 80px;
    height: auto;
    border-radius: 8px;
  }

  .cart-item h4 {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .cart-item p {
    font-size: 14px;
    margin: 3px 0;
  }

  .cart-item button {
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 6px;
  }

  #total {
    font-size: 18px;
    margin-top: 16px;
  }

  #buy-btn {
    width: 100%;
    margin-top: 14px;
    font-size: 16px;
    padding: 14px;
    border-radius: 10px;
  }
}
/* =============================== */
/* ===== FORCE MOBILE CART UI ==== */
/* =============================== */

@media screen and (max-width: 768px) {

  body {
    font-size: 16px;
  }

  .cart-container {
    width: 100%;
    padding: 12px !important;
  }

  .cart-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px;
    padding: 14px !important;
    border-radius: 12px;
  }

  .cart-item img {
    width: 100% !important;
    max-width: 140px;
    border-radius: 10px;
  }

  .cart-item h4 {
    font-size: 16px !important;
    line-height: 1.4;
  }

  .cart-item p {
    font-size: 15px !important;
  }

  .cart-item button {
    padding: 10px 14px !important;
    font-size: 15px !important;
    margin-top: 6px;
  }

  #total {
    font-size: 18px !important;
    margin-top: 16px;
  }

  #buy-btn {
    width: 100% !important;
    font-size: 17px !important;
    padding: 14px !important;
    margin-top: 16px;
    border-radius: 12px;
  }

}
/* ===== ENSURE CART BUTTONS ARE CLICKABLE ===== */

.cart-item button {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.cart-container {
  position: relative;
  z-index: 1;
}
