/* Reset and Base */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: white;
  color: black;
}

/* Header index */
.main-header {
  background-color: #000;
  color: white;
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.logo-section {
  display: flex;
  align-items: center;
}

.logo {
  height: 80px;
  margin-right: 15px;
}

.main-header h1 {
  font-size: 32px;
  color: white;
}

.contact-details {
  font-size: 14px;
  font-weight: bold;
  margin: 10px 0;
}

/* Navbar Styles with hover matching original design */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  padding: 10px 20px;
  position: relative;
  flex-wrap: wrap;
}

.navbar .logo img {
  height: 60px;
}

.navbar .nav-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.navbar .nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  transition: 0.3s;
}

.navbar .nav-links a:hover {
  background-color: red;
  border-radius: 5px;
}

.navbar .hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.navbar .hamburger span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 4px 0;
}

.navbar .mobile-menu {
  display: none;
  flex-direction: column;
  background: #000;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  z-index: 100;
}
.navbar .mobile-menu a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 20px;
  border-top: 1px solid #333;
  white-space: normal; /* allow wrapping */
}
.navbar .mobile-menu a:hover {
  background-color: red;
}

/* Show hamburger and mobile menu on small screens */
@media (max-width: 768px) {
  .navbar .nav-links {
    display: none;
  }
  .navbar .hamburger {
    display: flex;
  }
  .navbar .mobile-menu {
    display: none;
  }
  .navbar .mobile-menu.show {
    display: flex;
  }
  
}




/* Slideshow */
.slideshow-container {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: none;
}

.slide-overlay {
  position: absolute;
  top: 40%;
  width: 100%;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 5px #000;
}

.slide-overlay h2 {
  font-size: 42px;
  margin-bottom: 10px;
}

.slide-overlay p {
  font-size: 20px;
}

@media (max-width: 768px) {
  .slideshow-container {
    height: 300px;
  }
  .slide {
    height: 300px;
  }
  .slide-overlay {
    top: 20%;
  }
  .slide-overlay h2 {
    font-size: 1.5rem;
  }
  .slide-overlay p,
  .caption {
    font-size: 0.95rem;
  }
  .cta-button {
    font-size: 0.95rem;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .slideshow-container {
    height: 250px;
  }
  .slide {
    height: 250px;
  }
  .slide-overlay {
    top: 15%;
  }
  .slide-overlay h2 {
    font-size: 1.3rem;
  }
  .slide-overlay p,
  .caption {
    font-size: 0.9rem;
  }
  .cta-button {
    width: 60%;
    margin: 10px auto;
    display: block;
    font-size: 1rem;
  }
}

/* Category Cards */
.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 30px 10px;
  background: #f0f0f0;
}

.category-card {
  margin: 10px;
  padding: 20px 30px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  color: white;
  min-width: 240px;
  text-align: center;
}

.category-card.red {
  background-color: #8B0000;
}

.category-card.dark {
  background-color: #333;
}

/* Footer */
.footer {
  text-align: center;
  background-color: #ffffff;
  color: #000000;
  padding: 20px;
}

/* CTA Button & Caption in Slide */
.cta-button {
  display: inline-block;
  background-color: red;
  color: white;
  padding: 12px 26px;
  font-size: 16px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: 0.3s;
}

.cta-button:hover {
  background-color: darkred;
}

.caption {
  margin-top: 15px;
  font-size: 16px;
  font-weight: 500;
}

/* about Section */
.about-section {
  max-width: 900px;
  margin: 50px auto;
  padding: 30px 20px;
  background-color: #fff;
  text-align: center;
}

.about-section h2 {
  font-size: 28px;
  color: #b30000;
  margin-bottom: 15px;
}

.about-section p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
  color: #333;
}

.opening-times h3 {
  font-size: 22px;
  margin-bottom: 10px;
}


/* carpets.html  */
.product-grid {
  padding: 40px 20px;
  text-align: center;
  background-color: #f9f9f9;
}

.product-grid h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

.product-card {
  display: inline-block;
  width: 280px;
  background: white;
  border-radius: 10px;
  margin: 15px;
  padding: 20px;
  box-shadow: 0 0 10px #ccc;
  vertical-align: top;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.product-card h3 {
  font-size: 20px;
  margin: 10px 0 5px;
}

.product-card p {
  font-size: 14px;
  color: #333;
}

.view-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #8B0000;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.view-button:hover {
  background-color: red;
}

/*product-details.html*/
.product-detail {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.detail-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px #ccc;
  padding: 30px;
}

/* === LEFT COLUMN === */
.detail-images {
  flex: 1;
  min-width: 350px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.main-image img {
  width: 500px;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

/* === SLIDESHOW === */
.slideshow {
  position: relative;
  width:500px;
  height: 500px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

.slideshow img.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: 8px;
}

.slideshow img.slide.active {
  display: block;
}

.slideshow button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  padding: 10px 14px;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 5px #aaa;
}

#prevSlide {
  left: 15px;
}

#nextSlide {
  right: 15px;
}

/* === RIGHT SIDE FORM === */
.detail-info {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.detail-info h2 {
  font-size: 26px;
  color: #8B0000;
  margin-bottom: 15px;
}

.detail-info p {
  margin-bottom: 10px;
  font-size: 16px;
  color: #333;
}

.detail-info label {
  font-weight: bold;
  display: block;
  margin-top: 15px;
}

.detail-info select,
.detail-info input[type="number"] {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.detail-info input[type="checkbox"] {
  margin-right: 8px;
}

.detail-info button {
  display: inline-block;
  margin-top: 15px;
  margin-right: 10px;
  background-color: red;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

.detail-info button:hover {
  background-color: darkred;
}

.success-message {
  font-size: 16px;
  margin-top: 10px;
  color: green;
  font-weight: bold;
}

/* === MOBILE RESPONSIVE for products-detaisl.html === */



/* Clean styling for basket.html */
.basket-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  padding: 0 20px;
  flex-wrap: wrap;
}

.basket-left {
  flex: 1 1 60%;
}

.basket-right {
  flex: 1 1 35%;
  background: #fff5f5;
  border-left: 5px solid red;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.basket-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.basket-item img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-right: 1px solid #eee;
}

.basket-details {
  flex: 1;
  padding: 15px;
}

.basket-details h4 {
  font-size: 1.2em;
  margin: 0 0 8px;
  color: #8B0000;
}

.basket-details p {
  margin: 4px 0;
  font-size: 0.95em;
  color: #333;
}

.basket-right h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.basket-right p {
  margin: 6px 0;
  font-size: 16px;
}

.basket-right h2 {
  font-size: 24px;
  color: #8B0000;
  margin: 15px 0;
}

.btn-clear,
.btn-checkout {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-clear {
  background: #aaa;
  color: white;
}

.btn-checkout {
  background: red;
  color: white;
}

.btn-checkout:hover {
  background: darkred;
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.payment-icons img {
  height: 28px;
}

/* Mobile styling */
@media (max-width: 768px) {
  .basket-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .basket-left,
  .basket-right {
    width: 100%;
  }

  .basket-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .basket-item img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .basket-details {
    padding: 10px 0;
  }
}

@media (max-width: 768px) {
  .quantity-control {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    gap: 8px;
  }

  .quantity-control button {
    flex: 0 0 auto;
    padding: 6px 12px;
    font-size: 18px;
  }

  .quantity-control span {
    font-size: 16px;
    min-width: 24px;
    text-align: center;
    display: inline-block;
  }
}




.basket-count {
  background-color: red;
  color: white;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 0.8em;
  position: absolute;
  top: -5px;
  right: -10px;
  display: inline-block;
}


.detail-info p.success {
  color: green;
  font-weight: bold;
  margin-top: 10px;
}

.success-message {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quantity-control {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.quantity-control button {
  background: #b40000;
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 16px;
  cursor: pointer;
}

.quantity-control span {
  margin: 0 10px;
  font-weight: bold;
}

.basket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
}

.basket-details {
  flex: 1;
}

.basket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
}

.basket-details {
  flex: 1;
}

.basket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
}

.basket-details {
  flex: 1;
}

.basket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
}

.basket-details {
  flex: 1;
}

.basket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
}

.basket-details {
  flex: 1;
}

.quantity-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}



.quantity-controls button {
  background-color: #a00;
  color: white;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 4px;
}

/*chekout.html*/

.checkout-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Left: Form Section */
.checkout-box {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  flex: 1 1 55%;
  min-width: 340px;
  box-sizing: border-box;
}

.checkout-box h1 {
  font-size: 32px;
  color: #c00000;
  border-bottom: 3px solid red;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.checkout-box h2,
.checkout-box h3 {
  font-size: 22px;
  color: #b30000;
  margin-top: 30px;
  margin-bottom: 15px;
}

.checkout-box label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  font-size: 15px;
}

.checkout-box input,
.checkout-box select {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

.checkout-box input:focus,
.checkout-box select:focus {
  border-color: red;
  outline: none;
}

.checkbox-label {
  margin-top: 15px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 8px;
}

.required {
  color: red;
  font-weight: bold;
  margin-left: 4px;
}

/* Right: Summary + Payment */
.order-summary {
  flex: 1 1 35%;
  background: #fff5f5;
  padding: 25px 30px;
  border-radius: 10px;
  border-left: 5px solid red;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.order-summary h2 {
  margin-bottom: 20px;
  color: #c00000;
}

#order-items div {
  margin-bottom: 10px;
  font-size: 15px;
}

.order-summary p {
  font-size: 16px;
  margin: 8px 0;
}

#total {
  font-weight: bold;
  font-size: 18px;
  color: green;
}

.payment-buttons {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: stretch;
}

#paypal-button-container,
#card-button {
  width: 100%;
  max-width: 100%;
}

#card-button {
  background-color: #111;
  color: white;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

#card-button:hover {
  background-color: #333;
}

/* Responsive: Stack Form + Summary */
@media (max-width: 768px) {
  .checkout-wrapper {
    flex-direction: column;
  }

  .checkout-box,
  .order-summary {
    max-width: 100%;
    flex: 1 1 100%;
    padding: 20px;
  }

  .payment-buttons {
    align-items: stretch;
  }

  #paypal-button-container,
  #card-button {
    max-width: 100%;
  }
}


/* Confirmation Page Styling */
body.confirmation-page {
  background-color: #f9f9f9;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

.confirmation-content {
  max-width: 800px;
  margin: 80px auto;
  padding: 40px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  text-align: center;
  animation: fadeIn 0.8s ease-in-out;
}

.confirmation-content h2 {
  color: #e30613; /* Your brand red */
  font-size: 2rem;
  margin-bottom: 20px;
}

.confirmation-content p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.6;
}

.confirmation-content .button {
  display: inline-block;
  background-color: #e30613;
  color: #fff;
  padding: 12px 28px;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

.confirmation-content .button:hover {
  background-color: #c40010;
}

/* Smooth fade in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}


/*contact.html*/
.contact-hero {
  text-align: center;
  background: #f5f5f5;
  padding: 30px 15px;
  margin-top: 20px;
}
.contact-info-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px auto;
  max-width: 1000px;
  padding: 0 20px;
}
.contact-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.contact-box a {
  color: red;
  text-decoration: none;
  font-weight: bold;
}
.contact-form-section {
  max-width: 600px;
  margin: 30px auto;
  padding: 20px;
  background: #fafafa;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
}
.contact-form-section form {
  display: flex;
  flex-direction: column;
}
.contact-form-section label {
  margin-top: 10px;
}
.contact-form-section input,
.contact-form-section textarea {
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 5px;
}
.contact-form-section button {
  margin-top: 15px;
  padding: 10px;
  background-color: red;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
}
.contact-form-section button:hover {
  background-color: #c10000;
}
#form-status {
  margin-top: 10px;
  font-weight: bold;
}



.footer {
  background-color: #111;
  color: white;
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
}

.footer-columns {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
  margin: 0 15px;
}

.footer-col h3 {
  color: white;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.footer-col p,
.footer-col a {
  color: #ccc;
  font-size: 0.95em;
  line-height: 1.6;
  text-decoration: none;
}

.footer-col a:hover {
  color: white;
}

.footer-social {
  margin-top: 10px;
}

.footer-social img {
  width: 26px;
  margin-right: 10px;
  vertical-align: middle;
  transition: transform 0.3s;
}

.footer-social img:hover {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  font-size: 0.85em;
  color: #aaa;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-col {
    margin-bottom: 20px;
  }
}

.colour-note {
  font-size: 0.95em;
  color: #555;
  background: #f9f9f9;
  padding: 8px;
  border-left: 3px solid #b40000;
  margin-top: 10px;
}


.coming-soon-message {
  background: #f2f2f2;
  border: 2px dashed #d32f2f;
  padding: 40px;
  text-align: center;
  font-size: 1.2em;
  border-radius: 8px;
  margin-top: 30px;
}

.top-bar {
  background-color: #111;
  color: #fff;
  padding: 5px 20px;
  font-size: 0.9em;
  text-align: center;
}

.top-bar .container {
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .detail-container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .detail-images {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .main-image,
  .slideshow {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1; /* Makes all images square */
    position: relative;
  }

  .main-image img,
  .slideshow img.slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }

  .slideshow button {
    font-size: 18px;
    padding: 6px 12px;
    top: 50%;
    transform: translateY(-50%);
  }

  .detail-info {
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
  }

  .detail-info h2 {
    font-size: 1.4rem;
  }

  .detail-info p,
  .detail-info label {
    font-size: 1rem;
  }

  .detail-info select,
  .detail-info input[type="number"] {
    width: 100%;
    box-sizing: border-box;
  }

  .detail-info button {
    width: 100%;
    margin-top: 12px;
  }
}
