/* General Layout */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    padding: 1px 2px;
    background-color: #f9f9f9;    
}

/* Container for the marketing section */
.marketing-section {
    position: relative;
    width: 100%;
    height: 200px; /* Adjust the height as needed */
    overflow: hidden;
    background-color: #f4f4f4; /* Fallback background color */
}

/* Wrapper for the images */
.marketing-images {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Images */
.marketing-images img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: fill;
    opacity: 0; /* Start hidden */
    animation: fadeAnimation 12s infinite; /* Infinite fade animation */
}

/* Specific delay for each image */
.marketing-images img:nth-child(1) { animation-delay: 0s; }
.marketing-images img:nth-child(2) { animation-delay: 4s; }
.marketing-images img:nth-child(3) { animation-delay: 8s; }

/* Keyframes for the fade effect */
@keyframes fadeAnimation {
    0% { opacity: 0; }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; }
    100% { opacity: 0; }
}
@-webkit-keyframes fadeAnimation {
    0% { opacity: 0; }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; }
    100% { opacity: 0; }
}
@-moz-keyframes fadeAnimation {
    0% { opacity: 0; }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; }
    100% { opacity: 0; }
}

/* Section Styling */
section {
    margin-bottom: 0px;
    padding: 0px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding-top: 0px;
}

section h2 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    text-align: left;
    padding-left: 20px;
    font-weight: 600;
}

/* Category Cards */
.category-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Ensure 4 items per row on larger screens */
    gap: 20px;
}

.category-card {
    text-align: center;
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.category-card h3 {
    font-size: 18px;
    color: #555;
    margin: 0;
    font-weight: 500;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* === CAROUSEL — single source of truth === */
.carousel-section{
  width:100%;
  position:relative;
  overflow:hidden;
  background:#f4f4f4;

  /* Desktop: wide hero (matches your admin guidance ≈1920×560) */
  aspect-ratio: 1920 / 560;
  max-height: 560px; /* so tall screens don't overgrow it */
}

@media (max-width: 768px){
  /* Mobile: taller hero (matches your admin guidance ≈1200×650) */
  .carousel-section{
    aspect-ratio: 1200 / 650;
    max-height: none;
  }
}

.carousel{
  position:relative;
  width:100%;
  height:100%;
}

.carousel-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity .6s ease-in-out;
  z-index:0;
}

.carousel-slide.active{
  opacity:1;
  z-index:1;
}

.carousel-img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;      /* fill the section */
  object-position:center;
}

.carousel-caption{
  position:absolute;
  left:16px; right:16px; bottom:16px;
  background:rgba(0,0,0,.38);
  color:#fff;
  padding:8px 12px;
  border-radius:8px;
  font-size:14px;
  line-height:1.3;
}

/* Product Cards */
.product-cards {
    display: grid;
    grid-template-columns: repeat(4px, 1fr);
    gap: 5px;
}

.product-card {
    text-align: center;
    background: #fff;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 16px;
    color: #333;
    margin: 0;
    font-weight: 500;
}

.product-card p {
    font-size: 14px;
    color: #777;
    margin: 5px 0 0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.product-section3 {
    display: grid;
    grid-template-columns: repeat(4px, 1fr);
    gap: 5px;
    padding: 5%;
}

.product-card3 {
    text-align: center;
    background: #fff;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card3 img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.product-card3 h3 {
    font-size: 16px;
    color: #333;
    margin: 0;
    font-weight: 500;
}

.product-card3 p {
    font-size: 14px;
    color: #777;
    margin: 5px 0 0;
}

.product-card3:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    section h2 { font-size: 20px; }

    section {
        margin-bottom: 0px;
        padding: 0px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding-top: 0px;
    }

    .category-cards,
    .product-cards {
        grid-template-columns: repeat(2, 1fr); /* Ensure two columns on mobile */
    }

    .category-card h3,
    .product-card h3 { font-size: 14px; }
    .product-card p { font-size: 12px; }
}

/* Advert Section */
.advert-section {
    padding: 5px;
    background-color: #f9f9f9;
}

.advert-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    align-items: center;
}

.advert-left { position: relative; overflow: hidden; }

.advert-left img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.overlay-text {
    position: absolute;
    top: 20%;
    left: 10%;
    transform: translate(-10%, -20%);
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.overlay-text h2 { font-size: 24px; margin-bottom: 10px; font-weight: bold; }
.overlay-text h1 { font-size: 28px; margin-bottom: 20px; font-weight: 700; }
.overlay-text p  { font-size: 16px; margin-bottom: 20px; line-height: 1.5; }

.cta-buttons { display: flex; gap: 15px; }

.cta-button {
    padding: 10px 20px;
    background-color: white;
    color: #000;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}
.cta-button:hover { background-color: #ddd; }

.advert-right { text-align: center; }
.advert-right h1 { font-size: 26px; margin-bottom: 10px; }
.advert-right p  { font-size: 18px; margin-bottom: 20px; color: #555; }

.advert-right img {
    max-width: 40%;
    height: 250px;
    border-radius: 10px;
}

.advert-right .cta-buttons {
    justify-content: center;
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.cta-button.primary { background-color: #007aff; color: white; border: none; }
.cta-button.outline { border: 2px solid #007aff; color: #007aff; background: transparent; }
.cta-button.outline:hover { background-color: #007aff; color: white; }

/* Responsive Styles */
@media (max-width: 768px) {
    .advert-container { grid-template-columns: 1fr; text-align: center; }
    .overlay-text { position: static; transform: none; text-align: center; margin: 20px 0; }
}

/* Advert2 Section */
.advert2-section {
    padding: 5px 5px;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden; /* Prevent overflow */
}

.advert2-container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    height: 300px; /* Adjust height for the advert images */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.advert2-slideshow {
    position: absolute;
    display: flex;
    height: 100%;
    width: 100%;
}

.advert2-slideshow img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translateX(20%);
    transition: opacity 1.5s ease, transform 1.5s ease; /* Smooth fade-in and slide */
}

.advert2-slideshow img.active {
    opacity: 1;
    transform: translateX(0); /* Slide into view */
}

/* Section Title */
.advert2-title {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .advert2-container { height: 200px; }
    .advert2-title { font-size: 20px; }
}

@media screen and (max-width: 480px) {
    .advert2-container { height: 150px; }
    .advert2-title { font-size: 18px; }
}

/* General reset for body to avoid overflow */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Ensure no horizontal scrollbar */
}

/* High-Profile Section */
.high-profile-section {
    width: 100%;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1e1e1e, #414141);
    color: #fff;
    text-align: center;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #d1c4d6;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.profile-subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #ddd;
}

.profile-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.logo-card {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-card img { max-width: 100%; height: auto; }

.logo-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.profile-cta { display: flex; gap: 20px; justify-content: center; }

.profile-btn {
    padding: 12px 25px;
    text-decoration: none;
    color: #fff;
    background-color: #901a9b;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.profile-btn:hover {
    background-color: transparent;
    border: 2px solid #e100ff;
    color: #f3ebf3;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
}

.secondary-btn { background-color: transparent; border: 2px solid #fff; }
.secondary-btn:hover { background-color: #fff; color: #000; }

/* Responsive Design */
@media screen and (max-width: 768px) {
    .profile-title { font-size: 24px; }
    .profile-subtitle { font-size: 14px; }
    .profile-logos { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .promo-btn { font-size: 12px; padding: 8px 15px; }
    .logo-card img { max-width: 70%; }
    .profile-cta { flex-direction: column; gap: 10px; }
    .profile-btn { max-width: 100%; }
}

@media screen and (max-width: 480px) {
    .high-profile-section {
        width: 100%;
        padding: 60px 20px;
        background: linear-gradient(135deg, #1e1e1e, #414141);
        color: #fff;
        text-align: center;
    }
}

/* FLASH NOW — modern horizontal rail */
.flash-now{
  margin: 8px auto 16px;
  width:min(1200px, 95%);
  background:#fff;
  border-radius:16px;
  box-shadow:0 6px 24px rgba(16,24,40,.08);
  padding:14px 10px 16px;
}
.flash-now__head{
  display:flex;align-items:center;justify-content:space-between;
  padding:0 8px 6px 8px;border-bottom:1px solid #eef2f7;margin-bottom:8px;
}
.flash-now__title{display:flex;align-items:center;gap:8px}
.flash-now__title h2{margin:0;font-size:18px;letter-spacing:.1px}
.flash-now__sub{color:#6b7280;font-size:12px}
.flash-now__link{color:#e63946;text-decoration:none;font-weight:600}
.flash-now__link:hover{text-decoration:underline}

.flash-now__rail{
  display:flex;gap:14px;overflow-x:auto;padding:10px 6px 4px 6px;
  scroll-snap-type:x mandatory;
}
.flash-now__rail::-webkit-scrollbar{height:10px}
.flash-now__rail::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:999px}

.deal-card{
  scroll-snap-align:start;
  min-width:220px;max-width:240px;flex:0 0 auto;
  background:#fff;border:1px solid #eef2f7;border-radius:14px;overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease;
}
.deal-card:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(16,24,40,.12)}
.deal-card__media{position:relative;aspect-ratio:1/1;background:#fafafa}
.deal-card__media img{width:100%;height:100%;object-fit:cover;display:block}
.deal-card__ribbon{
  position:absolute;top:10px;left:10px;z-index:2;
  background:#e63946;color:#fff;font-weight:700;font-size:12px;
  padding:6px 8px;border-radius:8px;
}
.deal-card__title{font-size:14px;line-height:1.35;margin:8px 10px 4px;height:38px;overflow:hidden}
.deal-card__price{display:flex;align-items:baseline;gap:8px;margin:2px 10px 6px}
.deal-card__now{font-weight:800;color:#111827}
.deal-card__was{text-decoration:line-through;color:#9ca3af;font-size:12px}
.deal-card__meta{display:flex;justify-content:space-between;align-items:center;margin:0 10px 10px;color:#6b7280;font-size:12px}
.deal-card__cta{
  display:block;margin:0 10px 12px;background:#e63946;color:#fff;
  text-align:center;padding:10px 12px;border-radius:10px;text-decoration:none;font-weight:700;
}
.deal-card__cta:hover{background:#d62839}

@media (max-width:768px){
  .flash-now{width:98%;border-radius:12px}
  .deal-card{min-width:190px;max-width:200px}
}
