/* =========================GLOBAL STYLES & RESET============================ */
:root {
    --primary: #0054A6; /* Deep Blue */
    --egesa-orange: #f1921f; /* Corporate Orange */
    --dark: #1A1A1A; /* Deep Black */
    --light-gray: #F4F4F4; /* Soft Light Gray */
    --med-gray: #D9D9D9; /* Neutral Mid Gray */
    --success: #2ECC71; /* Modern Green */
    --warning: #f1921f; /* Premium Yellow */
    --font-stack: 'Poppins', sans-serif;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    margin: 0;
    padding: 0;

    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light-gray);

    overflow-x: hidden;
    max-width: 100%;

    padding-top: 150px; /* FIXED NAV OFFSET (TOP BAR + HEADER) */

    transition: margin-right 0.3s;
}

a {
    text-decoration: none;
    color: var(--egesa-orange);
    font-weight: 600;
}
/* Top Bar Styling */
.top-bar {
  width: 100%;
  background-color: #f1921f;
  color: white;
  font-size: 1rem;
  padding: 8px 50px;
  font-weight: bold;

  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
}

/* Top Bar Content */
.top-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end; /* aligns to right */
  gap: 30px;
}

/* Links Styling */
.top-bar-link {
  color: white;
  text-decoration: none; /* removes underline */
  font-weight: bold;
  transition: color 0.3s;
}

.top-bar-link:hover {
  color: #ffe5b4; /* optional hover color */
  text-decoration: none; /* ensure no underline */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

button, .btn {
    background-color: var(--egesa-orange);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
}

button:hover, .btn:hover {
    background-color: #e65c00; 
}

button:active, .btn:active {
    transform: translateY(1px);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

/* ==========================HEADER & NAVIGATION============================== */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

    position: fixed;
    top: 40px;   /* height of top bar */
    left: 0;
    width: 100%;

    z-index: 1000;
}
nav {
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
/* LOGO CONTAINER */
.logo {
margin-left: -40px;
  display: flex;
  align-items: center;
  min-width: 120px; /* prevents navbar shifting */
}

/* LOGO IMAGE */
.nav-logo-img {
  height: 100px!important;          /* fixed size */
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 1.1rem;
    color: #ffae00; 
    padding: 5px 0;
    position: relative;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #472608; 
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background-color: #F58220; 
    border-radius: 2px;
}
.nav-dropdown .dropdown-menu li a {
    padding: 10px 20px;
    color: #009344; 
    text-decoration: none;
    transition: 0.2s;
}

.nav-dropdown .dropdown-menu li a:hover {
    background: #F4F4F4; 
    color: #F58220;      
}
#cart-btn {
    background: none;
    border: none;
    padding: 0;
    position: relative;
    font-size: 1.5rem;
    color: var(--dark);
}

#cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--success);
    color: white;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    transition: transform 0.2s;
}

/* ====MAIN CONTENT & SECTIONS====*/
main {
    padding: 30px 0;
}

.dashboard-section {
    display: none;
    padding: 20px 0;
}

/* ====HOME SECTION===== */
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;

    scroll-padding-top: 150px;
}

/* ====HOME SECTION==== */
#home {
    display: block; 
}

/* ====HERO BANNER==== */
.hero-banner {
    margin-top: -55px;
    position: relative;       /* required for absolute buttons */
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    min-height: 80vh;
    background:
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;      /* vertically center text */
    justify-content: center;  /* horizontally center text */
    padding: 0 15px;
}

/* ====HERO CONTENT==== */
.hero-content {
    color: white;
    max-width: 800px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ====HEADINGS==== */
.hero-content h1 {
    font-size: 3rem;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.hero-content h1 strong {
    color: var(--egesa-orange);
}

#dynamic-headline {
    min-height: 40px;
    margin-bottom: 0; 
}

/* ====BUTTONS AT BOTTOM-RIGHT==== */
.cta-group {
    position: absolute;   /* absolute inside hero-banner */
    bottom: 40px;         /* distance from bottom */
    right: 40px;          /* distance from right */
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

/* Buttons styling */
.cta-group .btn {
    padding: 12px 30px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.3s; /* smooth hover */
}

/* Orange Button */
.cta-group .btn-orange {
    background-color: #F6931D; 
    color: #ffffff; 
}

/* Green Button */
.cta-group .btn-green {
    background-color: #f1921f; 
    color: #ffffff; 
}

/* Hover effect for main buttons */
.cta-group .btn-orange:hover,
.cta-group .btn-green:hover {
    background-color: #791617; /* new hover color */
    transform: scale(1.05);    /* slight pop effect */
    color: white;
}

/* Secondary button (if used) */
.cta-group .btn-secondary {
    background-color: transparent;
    border: 2px solid white;
}

.cta-group .btn-secondary:hover {
    background-color: #791617;
    color: white;
    border-color: #791617;
}

/* ====ANIMATIONS==== */
.hero-content h1,
#dynamic-headline,
.cta-group .btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s forwards;
}

.hero-content h1 {
    animation-delay: 0.2s;
}

#dynamic-headline {
    animation-delay: 0.6s;
}

.cta-group .btn-orange {
    animation-delay: 1s;
}

.cta-group .btn-green {
    animation-delay: 1.2s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*====Universal Section Styling====*/
.home-section {
  padding: 40px 20px;
  margin-bottom: 40px;
  text-align: center; 
}

.home-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #791617;
  font-weight: 700;
}

/*====Future Cards Grid====*/
.future-cards {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(4, 1fr); /* exactly 4 columns */
}


/*====Individual Card====*/
.future-cards {
  display: grid;
  gap: 20px;                        /* spacing between cards */
  grid-template-columns: repeat(4, 1fr);  /* 4 items per row */
}

.future-card {
  position: relative;
  border-radius: 1px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.future-card:hover {
  transform: translateY(-5px);
}

.future-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background:  #791617;
  color: white;
  text-align: center;
  padding: 5px 0;
  font-size: 1rem;
  font-weight: 500;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: center; /* centers the text */
    font-size: 2rem;
    font-weight: 600;
    color: var(--egesa-orange);
    margin: 40px 0;
    text-align: center;
}

.section-heading::before,
.section-heading::after {
    content: "";
    width: 50px;           /* short line length */
    height: 2px;           /* line thickness */
    background: #F6931D;   /* line color */
    margin: 0 15px;        /* space between line and text */
}

/*====Guarantee Section====*/
#guarantee {
  background-color: transparent;
  padding: 60px 20px;
  text-align: center;
  position: relative;
}

#guarantee h2 {
  font-size: 2.2rem;
  color: #791617;
  margin-bottom: 150px;
  font-weight: 700;
}

/*====Cards grid====*/
.guarantee-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  justify-items: center;
  position: relative;
}

/*====Individual card====*/
.guarantee-card {
  background-color: #791617; 
  border-radius: 1px;
  padding: 25px 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15); 
  transition: transform 0.3s, box-shadow 0.3s;
  max-width: 260px;
  text-align: center;
  margin-top: -100px; 
}

.guarantee-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.guarantee-card i {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 15px;
}

.guarantee-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
  position: relative;
}

.guarantee-card h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: white;
  margin: 8px auto 0;
  border-radius: 2px;
}

.guarantee-card p {
  font-size: 0.95rem;
  color: white;
  line-height: 1.5;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--egesa-orange);
    margin: 40px 0;
}

.section-heading::before,
.section-heading::after {
    content: "";
    width: 100px;
    height: 3px; /* line thickness */
    background: #f1921f; /* line color */
    margin: 0 15px; /* space between line and text */
}

/* ====SHOP ALL SECTION====*/
#shop-all {
    display: none;
    padding-top: 0;
}

.shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.shop-sidebar {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 80px; 
    height: fit-content;
}

.shop-sidebar h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--egesa-orange);
    padding-bottom: 10px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group ul {
    list-style: none;
}

.filter-group ul li a {
    display: block;
    padding: 8px 0;
    color: var(--dark);
    font-weight: 400;
    transition: color 0.2s, background-color 0.2s;
    border-radius: 4px;
}

.filter-group ul li a.active {
    color: var(--egesa-orange);
    font-weight: 600;
    background-color: rgba(255, 103, 0, 0.08); 
    padding-left: 10px;
}

.filter-group ul li a:hover {
    color: var(--egesa-orange);
    padding-left: 5px;
}

.price-range-controls {
    padding: 15px 0;
}

.price-range-controls p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: var(--med-gray);
    border-radius: 5px;
    margin-bottom: 10px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--egesa-orange);
    cursor: pointer;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--med-gray);
}

.product-header select {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid var(--med-gray);
    font-family: var(--font-stack);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s;
    cursor: pointer; 
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-card-image {
    height: 200px;
    overflow: hidden;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
     background: none; /* remove gray background */
    border-radius: 0;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px; /* tighter spacing */
}

.product-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.price-tag {
    font-size: 1.4rem;
    color: var(--egesa-orange);
    font-weight: 700;
}

.badge {
    background-color: var(--success);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.qty-control {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-bottom: 15px;
}

.qty-control label {
    font-size: 0.9rem;
    font-weight: 600;
}

.qty-control input {
    width: 50px;
    padding: 5px;
    text-align: center;
    border: 1px solid var(--med-gray);
    border-radius: 4px;
    font-family: var(--font-stack);
}
/* ====PRODUCT GRID==== */
#product-listing {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr)); /* make each card bigger */
    gap: 30px;
    margin-top: 20px;
}


/*====Product card styling====*/
.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-card-image img {
    width: 100%;
    height: 180px; 
    object-fit: cover;
}

.product-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.product-card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.product-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.price-tag {
    font-weight: 600;
    color: #e67e22;
}

.badge {
    background: #f0f0f0;
    color: #555;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.qty-control input {
    width: 50px;
    padding: 3px;
}

.buy-btn {
    margin-top: auto; /* sticks to bottom */
    padding: 8px;
    background-color: var(--egesa-orange);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.buy-btn:hover {
    background: #d35400;
}
#pagination-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

#pagination-controls button {
    margin: 0 8px;
    padding: 8px 14px;
    border-radius: 6px;
}
.options-box {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.options-box .box {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    transition: all 0.2s;
    user-select: none;
}

.options-box .box:hover {
    border-color: #007BFF;
}

.options-box .box.selected {
    background-color: #007BFF;
    color: white;
    border-color: #007BFF;
}
/* Responsive: on smaller screens, reduce columns */
@media (max-width: 1024px) {
    #product-listing {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    #product-listing {
        grid-template-columns: 1fr;
    }
}

/* ====QUOTE SECTION==== */
#quote {
    display: none;
}

.quote-form-container {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
}

.quote-form-container h2 {
    text-align: center;
    color: var(--egesa-orange);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--med-gray);
    border-radius: 6px;
    font-family: var(--font-stack);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.quote-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* ====PROPERTY SECTION==== */
#property {
    display: none;
    padding-bottom: 50px;
}

.property-container {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}

.property-card {
    margin-bottom: 20px;
    border: 1px solid var(--med-gray);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: box-shadow 0.3s;
}

.property-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.property-card i {
    font-size: 2.5rem;
    color: var(--egesa-orange);
}

.property-card h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* ====CONTACT SECTION==== */
#contact {
    display: none;
    padding-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-info, .contact-map {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-map {
    height: 400px; /* height of the map */
    border-radius: 10px;
    overflow: hidden; /* ensures map respects rounded corners */
    background-color: transparent; /* remove placeholder gray */
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--egesa-orange);
}

.contact-info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

/*==== CART SIDEBAR & OVERLAY ====*/
#cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

#cart-sidebar.show {
    transform: translateX(0);
}

/* ==== HEADER ==== */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--egesa-orange);
}

.cart-header h2 {
    font-size: 1.8rem;
    margin: 0;
}

/*==== CART SIDEBAR & OVERLAY ====*/
#cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

#cart-sidebar.show {
    transform: translateX(0);
}

/* ==== HEADER ==== */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--egesa-orange);
}

.cart-header h2 {
    font-size: 1.8rem;
    margin: 0;
}

/* ==== CLOSE BUTTON ==== */
.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    padding: 5px;
    cursor: pointer;
}

.close-cart:hover {
    background-color: transparent !important;
    color: var(--egesa-orange);
}

/* ==== CART ITEMS ==== */
.cart-items {
    list-style: none;
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
}

/* ==== QTY CONTROLS ==== */
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    
}

.qty-minus,
.qty-plus {
    width: 40px;
    height: 36px;
    font-size: 17px;
    padding: 2px 8px;
}

/* Quantity number */
.cart-item-controls .qty-display {
    padding: 0 8px;
    font-weight: 600;
}

/* ==== REMOVE BUTTON ==== */
.remove-item-btn {
    margin-top: 20px!important;
    background: transparent;
    color: #dc3545;
    border: none;
    font-size: 14px;
    cursor: pointer;
}



/* ==== SUMMARY ==== */
.cart-summary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--med-gray);
}

.cart-summary .total {
    display: flex;
    justify-content: space-between;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* ==== CHECKOUT BUTTON ==== */
.checkout-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

#cart-sidebar .qty-minus,
#cart-sidebar .qty-plus {
    background-color: var(--med-gray);
    color: var(--dark);
}

#cart-sidebar .qty-minus:hover,
#cart-sidebar .qty-plus:hover {
    background-color: #f1921f !important;
    color: white !important;
}

#cart-sidebar .remove-item-btn {
    color: #f1921f;
    background-color: transparent;
}

#cart-sidebar .remove-item-btn:hover {
    color: #b02a37 !important; /* darker red on hover */
    background-color: transparent !important;
    text-decoration: underline;
}

/* ==== OVERLAY ==== */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#overlay.show {
    opacity: 1;
    visibility: visible;
}


/* ====PRODUCT DETAIL MODAL STYLES (UPDATED FOR FULL PAGE)==== */
.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(0, 0, 0, 0.7);

    z-index: 5000; /* MUST be higher than navbar */

    display: none;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transition: opacity 0.3s;
}


.modal-wrapper.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: white;
    /* RESTORING FULL-PAGE MODAL SIZE */
    width: 95%; 
    max-width: 1200px; 
    height: 90vh; 
    overflow-y: auto; 
    /* END RESTORE */
    border-radius: 10px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transform: translateY(-50px);
    transition: transform 0.3s;
}


.modal-wrapper.show .modal-content {
    transform: translateY(0);
}

/* REMOVED CONFLICTING DUPLICATE BLOCK FOR .modal-content */

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    z-index: 301;
    cursor: pointer;
}

.product-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

/* LEFT COLUMN: Image & Gallery */
.modal-image-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-image-area img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border: 1px solid var(--med-gray);
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.color-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: 50%;      /* circle */
    cursor: pointer;
    border: 2px solid var(--med-gray);
    transition: border-color 0.2s, transform 0.2s;
    overflow: hidden;
}

.color-thumbnail.active {
    border-color: var(--egesa-orange);
    box-shadow: 0 0 6px rgba(245, 130, 32, 0.6);
    transform: scale(1.08);
}


/* RIGHT COLUMN: Details & Features */
.modal-details-area h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-top: 0;
}

.modal-badge {
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

.price-tag-large {
    font-size: 2.2rem;
    color: var(--egesa-orange);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.detail-section {
    margin: 20px 0;
}

.detail-section h4 {
    font-size: 1.2rem;
    color: var(--egesa-orange);
    border-bottom: 1px solid var(--med-gray);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.feature-list li {
    font-size: 0.95rem;
    color: #444;
}

.feature-list li i {
    color: var(--success);
    margin-right: 8px;
}

.uses-list {
    grid-template-columns: 1fr; 
}

/*====SELECTION CONTROLS====*/
.selection-group {
    margin-top: 20px;
}

.selection-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.selection-group select {
    padding: 10px;
    border: 1px solid var(--med-gray);
    border-radius: 6px;
    font-size: 1rem;
    width: 50%;
    min-width: 200px;
    font-family: var(--font-stack);
}


/* =====FOOTER==== */
footer {
    background-color: #791617;
    color: #fff;
    padding: 40px 0 10px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1; 
    min-width: 200px; 
}

.footer-col h4 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: white;
    font-weight: 400;
    display: block;
    padding: 5px 0;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--egesa-orange);
}

.footer-col ul li .fab {
    margin-right: 8px;
    width: 20px;
}

.copyright {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    color: #fff;
}
/*====MEDIA QUERIES (Responsiveness)====*/
@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 1fr; 
    }

    .shop-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .nav-list {
        gap: 15px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .category-showcase {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    .footer-col {
        min-width: 100%;
    }
    .product-modal-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .modal-image-area img {
        max-height: 250px;
    }
    .feature-list {
        grid-template-columns: 1fr; 
    }
    .selection-group select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    .nav-list {
        display: none; 
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .cta-group {
        flex-direction: column;
    }
    #cart-sidebar {
        width: 100%; 
    }
}
@media (max-width: 1200px) {
  .future-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .future-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .future-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1200px) {
  .future-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .future-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .future-cards { grid-template-columns: 1fr; }
}
/* ================= MOBILE TOP BAR ================= */
@media (max-width: 480px) {

  /* Hide phone number */
  .top-bar-content a:nth-child(2) {
    display: none;
  }

  /* Center email */
  .top-bar-content a:nth-child(1) {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 14px;
    height: 30px;
  }
}

@media (max-width: 480px) {
/* ================= TOP NAVBAR (DESKTOP DEFAULT) ================= */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 90px; /* desktop height */
  margin-top: 0;
  box-sizing: border-box;
}

/* Logo */
.logo {
    margin-left: -30px;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-logo-img {
  height: 80px!important;
  width: auto;
  object-fit: contain;
}

/* Desktop Nav Links */
.nav-list {
  display: flex;
  gap: 25px;
  list-style: none;
}

/* Cart container */
.nav-icons {
  display: flex;
  align-items: center;
}

/* Desktop Cart Button */
#cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2000;
}
}
/* ================= MOBILE NAVBAR ================= */
@media (max-width: 480px) {

  /* Hide desktop menu links */
  .nav-list {
    display: none;
  }

  /* Cart button on mobile */
  #cart-btn {
    position: fixed;
    top: 70px; /* adjust according to mobile top bar height */
    right: 15px;
    width: 28px;
    height: 28px; /* slightly larger for mobile */
    background: none;
    border: none;
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }

  #cart-btn i {
    display: inline-block !important;
  }

  #cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Logo adjustment for mobile */
  .logo {
    height: 50px; /* adjust to fit the new navbar height */
  }

  .nav-logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
  }
}



/* ================= BOTTOM MOBILE NAV ================= */

.bottom-nav {
  display: none;
}

@media (max-width: 480px) {

  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
    z-index: 10000;
  }

  .bottom-nav button {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    color: #0f172a;
  }

  body {
    padding-bottom: 70px;
  }

}


@media (max-width: 480px) {
  /* ---------- HERO BANNER ---------- */
  .hero-banner {
    margin-top: -68px;
    padding: 10px 5px;       /* reduce padding */
    text-align: center;
    height: 200px;            /* let content define height */
    min-height: 150px;       /* optional: set smaller minimum height */
  }

  .hero-content h1 {
    font-size: 18px;         /* smaller headline */
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .hero-content p {
    font-size: 12px;         /* smaller paragraph */
    margin-bottom: 10px;
  }

  .cta-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .cta-group .btn {
    width: 110%;
    font-size: 13px;
    padding: 8px 0;
  }

  /* Hide the orange button */
  .cta-group .btn.btn-orange {
    display: none;
  }

  /* Ensure green button is visible */
  .cta-group .btn.btn-green {
    display: block;
  }

 @media (max-width: 480px) {
  /* ---------- FUTURE CARDS (Products & Accessories) ---------- */
  .future-cards {
     margin-left: -30px;
    display: grid;
    grid-template-columns: 1fr;  /* single column for mobile */
    gap: 20px;                   /* vertical space between cards */
    padding: 10px 10px;
  }

  .future-card {
    width: 350px;
    height: 300px;  
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;                  /* remove padding so image fills fully */
    background: none;            /* remove white background */
    border-radius: 1px;          /* optional rounded corners */
    overflow: hidden;            /* prevents image overflow */
    box-shadow: none;            /* optional: remove shadow */
  }

  .future-card img {
    width: 100%;                 /* fill full card width */
    height: auto;                /* maintain aspect ratio */
    display: block;
    border-radius: 0;            /* remove rounding for full coverage */
    object-fit: cover;           /* fill the container fully */
  }

  .card-caption {
    margin-top: 5px;
    font-size: 14px;
    color: #fff;
    text-align: center;
  }

  .section-heading {
    font-size: 16px;          
    font-weight: 600!important;          
    text-align: center;        
    margin-top: 15px;          
    margin-bottom: 10px;       
    color: #0f172a;            
    line-height: 1.3;          
    white-space: nowrap;        
    overflow: hidden;
    text-overflow: ellipsis;
  }
 }
}

  @media (max-width: 480px) {
  .guarantee-cards {
    display: grid;
    grid-template-columns: 1fr;  /* single column */
    gap: 120px;                   /* vertical spacing between cards */
    padding: 10px;
    width: 100%;                 /* full width container */
    box-sizing: border-box;
  }
  .guarantee-card {
    display: flex;
    flex-direction: column;      /* vertical stack: icon above text */
    align-items: center;
    text-align: center;
    width: 100%;                 /* full width to prevent overlap */
    max-width: 100%;             /* ensure it never exceeds container */
    padding: 15px;
    background: #791617;
    border-radius: 5px;
    box-sizing: border-box;
    word-wrap: break-word;       /* allow text to wrap inside card */
  }
  .guarantee-card i {
    font-size: 28px;             /* visible icon */
    color: #fff;
    margin-bottom: 8px;          /* spacing between icon and text */
    flex-shrink: 0;
  }
  .guarantee-card h3 {
    font-size: 17px;
    margin: 0;
    color: #fff;
    line-height: 1.2;
    word-break: break-word;      /* wrap heading if needed */
  }
  .guarantee-card p {
    font-size: 15px;
    margin: 5px 0 0 0;
    color: #fff;
    line-height: 1.3;
    word-break: break-word;      /* wrap paragraph text */
  }
}
 
@media (max-width: 480px) {
  /* Main Shop Padding */
  .shop-main {
    padding: 8px;
  }

  /* Header Layout */
  .product-header {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .sort-controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .sort-controls select {
    width: 65%;
    padding: 7px;
    border-radius: 6px;
    font-size: 13px;
  }

  /* Search Bar */
  .search-bar input {
    padding: 10px;
    font-size: 14px;
    border-radius: 8px;
  }

  /* Product Grid */
  .product-listing {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* Product Card */
  .product-card {
    margin-left: 20px;
    width: 300px;
    padding: 6px;
    border-radius: 1px;
  }

  .product-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
  }

  .product-card h4 {
    font-size: 13px;
    line-height: 1.2;
  }

  .product-card .price {
    font-size: 12px;
    font-weight: bold;
  }

  /* Buttons */
  .product-card button {
    padding: 7px;
    font-size: 12
    4px;
    border-radius: 6px;
  }

/* Pagination - Mobile Optimized */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}

/* Pagination Buttons */
.pagination button {
  min-width: 32px;
  height: 32px;
  padding: 0;
  font-size: 11px;
  border-radius: 1px!important;
  display: flex;
  align-items: center;
  justify-content: center;
}
}
.testimony-title {
  text-align: center;
  color: #b02a37;
  font-weight: 700;
  letter-spacing: 1px;
}
