/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cormorant Garamond', serif;
  background-color: #ffffff;
  color: #5f5c4d;
  line-height: 1.5;
}

/* === NAVBAR === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: #ffffff;
  color: #000;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* === LOGO === */
.logo {
  height: 45px;
  cursor: pointer;
}

/* === NAV LINKS === */
.nav-center {
  flex: 1;
  text-align: center;
}

.nav-links {
  list-style: none;
  display: inline-flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: black;
}

/* === CART ICON === */
.cart-icon {
    margin-left: 15px;
  width: 28px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cart-icon:hover {
  transform: scale(1.1);
}

/* === CATEGORY BUTTON === */
.category-btn {
  font-size: 22px;
  margin-left: 15px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.category-btn:hover {
  color: black;
}

/* === CATEGORY MENU === */
.category-menu {
  background-color: #f4f4f4;
  padding: 20px;
  display: none;
  flex-direction: column;
  border-bottom: 2px solid #d6b85a;
}

.category-menu a {
  margin: 10px 0;
  text-decoration: none;
  color: #5f5c4d;
  font-weight: bold;
  font-size: 18px;
}

.category-menu.open {
  display: flex;
}

/* === VIDEO SECTION === */
.video-section {
  width: 100%;
  text-align: center;
  margin: 20px 0;
}

.main-video {
  width: 90%;
  max-width: 900px;
  border: 4px solid #000000;
  border-radius: 10px;
}

/* === MAIN TITLE === */
.main-title {
  text-align: center;
  margin: 20px 0;
  font-size: 28px;
  font-weight: bold;
  color: #5f5c4d;
}

/* === SHOP NOW BUTTON === */
a[href="shop.html"] {
  background-color: #000000;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 18px;
  text-decoration: none;
  transition: background 0.3s ease;
}

a[href="shop.html"]:hover {
  background-color: #000000;
}

/* === NEW COLLECTION === */
h2 {
  text-align: center;
  margin: 30px 0 15px;
  font-size: 24px;
  color: #5f5c4d;
}

.new-collection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  padding: 0 20px;
}

.new-collection img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.new-collection img:hover {
  transform: scale(1.05);
}

/* === NEW ARRIVALS (HORIZONTAL SLIDER) === */
.new-arrivals {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding: 0 20px;
  scroll-snap-type: x mandatory;
}

.new-arrivals div {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.new-arrivals img {
  width: 200px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.new-arrivals img:hover {
  transform: scale(1.05);
}

/* === FOOTER === */
footer {
  background-color: #f5f5f5;
  padding: 60px;
  text-align: center;
  border-top: 4px solid #000000;
}

.footer-logo {
  height: 40px;
  margin-bottom: 10px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 10px 0;
}

.icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #000000;
  padding: 2px;
  background-color: white;
}

.footer-links {
  margin-top: 10px;
  font-size: 14px;
  font-family: 'Cormorant Garamond', serif;
}

.footer-links a {
  text-decoration: none;
  color: #5f5c4d;
  margin: 0 5px;
  font-weight: bold;
  font-family: 'Cormorant Garamond', serif;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: px;
  background-color: #ffffff;
  border-top: 2px solid #000000;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  z-index: 1000;
}

.nav-btn-img {
  width: 30px;
  height: 30px;
  transition: transform 0.2s;
}

.nav-btn-img:hover {
  transform: scale(1.1);
}
/* --- Product Card --- */
.product-card {
  border: 2px solid #000000;
  padding: 15px;
  margin: 15px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(135deg, #ffffff, #f2f2f2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: 'Cormorant Garamond', serif;
}

.product-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, black, #ffffff, black);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.product-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 15px;
  margin-bottom: 10px;
  border: 3px solid #000000;
  transition: transform 0.3s ease;
}

.product-img:hover {
  transform: scale(1.05);
}

.product-name {
  font-size: 20px;
  font-weight: bold;
  color: #5f5c4d;
  margin-top: 12px;
  font-family: 'Cormorant Garamond', serif;
}

.product-price {
  font-size: 18px;
  color: #d6b85a;
  margin: 8px 0;
  font-family: 'Cormorant Garamond', serif;
}

.buy-button {
  background-color: #000000;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: 'Cormorant Garamond', serif;
}

.buy-button:hover {
  background-color: #d6b85a;
  color: #000000;
}


/* --- Product page --- */
/* === الصفحة الأساسية === */
.product-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === الصور === */
.product-images {
  text-align: center;
}

.main-product-image {
  width: 90%;
  max-width: 400px;
  border: 4px solid #000000;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.main-product-image:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

.thumbnail-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.thumbnail {
  width: 60px;
  height: 60px;
  border: 2px solid #000000;
  border-radius: 8px;
  cursor: pointer;
  object-fit: cover;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.thumbnail:hover {
  transform: scale(1.1);
  border-color: #03030a;
}

/* === تفاصيل المنتج === */
.product-details {
  text-align: left;
  max-width: 400px;
  margin-top: 20px;
  font-family: 'Cormorant Garamond', serif;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- دوائر الألوان --- */
.color-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-block;
  margin: 5px;
  cursor: pointer;
  border: 2px solid #000000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.color-circle:hover {
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.color-circle.selected {
  border: 3px solid #d6b85a;
  box-shadow: 0 0 10px #d6b85a;
}

/* --- مربعات المقاسات --- */
.size-box {
  display: inline-block;
  padding: 10px 15px;
  margin: 5px;
  border: 2px solid #000000;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.size-box:hover {
  transform: scale(1.1);
  background-color: #f0f0f0;
}

.size-box.selected {
  background-color: #1f2361;
  color: #fff;
  border-color: #d6b85a;
}

/* === زرار Add to Bag === */
.buy-button {
  background-color: #1f2361;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 16px;
  width: 100%;
}

.buy-button:hover {
  background-color: #d6b85a;
  color: #1f2361;
  transform: scale(1.05);
}

/* === You May Also Like === */
.you-may-also-like {
  margin-top: 40px;
  text-align: center;
  animation: fadeIn 1.5s ease;
}

.you-may-also-like h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #1f2361;
}

.you-may-also-like .product-card {
  display: inline-block;
  width: 180px;
  margin: 10px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.you-may-also-like .product-card:hover {
  transform: scale(1.1);
}
/* --- Cart Sidebar --- */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
  background: #fdfdfd;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
  padding: 20px;
  transition: right 0.3s ease-in-out;
  z-index: 9999;
  font-family: 'Cormorant Garamond', serif;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
}

.cart-sidebar.visible {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-header h2 {
  font-size: 22px;
  color: #5f5c4d;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #d6b85a;
  cursor: pointer;
}

.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 10px;
}

.cart-item-details {
  flex: 1;
  font-family: 'Cormorant Garamond', serif;
}

.cart-item-details h4 {
  margin: 0;
  font-size: 16px;
  color: #5f5c4d;
}

.cart-item-details p {
  margin: 5px 0;
  font-size: 14px;
  color: #777;
}

.cart-footer {
  border-top: 1px solid #ddd;
  padding-top: 10px;
}

.total {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #d6b85a;
  font-family: 'Cormorant Garamond', serif;
}

.checkout-btn {
  display: block;
  background: #1f2361;
  color: white;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
  font-family: 'Cormorant Garamond', serif;
}

.checkout-btn:hover {
  background: #181c4f;
}

.cart-buttons {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 10px;
}


/* القائمة الجانبية */
.category-menu {
  position: fixed;
  top: 0;
  left: -500px;
  width: 250px;
  height: 100%;
  background-color: white;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  padding: 20px;
  transition: left 0.3s ease;
  z-index: 1000;
}

.category-menu.open {
  left: 0;
}

.close-btn {
  align-self: flex-end;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 20px;
}

.category-btn {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}


.section-title {  color: #d6b85a;

  font-family: 'Cormorant Garamond', serif;
}

#colorSelect, #sizeSelect {
  display: none;
}




.cssbuttons-io {
  
  position: relative;
  font-family: inherit;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.05em;
  border-radius: 0.8em;
  cursor: pointer;
  border: none;
  background: linear-gradient(to right, #8e2de2, #4a00e0);
  color: ghostwhite;
  overflow: hidden;
}

.cssbuttons-io svg {
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.5em;
}

.cssbuttons-io span {
  position: relative;
  z-index: 10;
  transition: color 0.4s;
  display: inline-flex;
  align-items: center;
  padding: 0.8em 1.2em 0.8em 1.05em;
}

.cssbuttons-io::before,
.cssbuttons-io::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cssbuttons-io::before {
  content: "";
  background: #000;
  width: 120%;
  left: -10%;
  transform: skew(30deg);
  transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

.cssbuttons-io:hover::before {
  transform: translate3d(100%, 0, 0);
}

.cssbuttons-io:active {
  transform: scale(0.95);
}




.center-horizontal {
  display: flex;
  justify-content: center;
}