body {
    font-family: system-ui, sans-serif;
    margin: 0;
    padding: 0;
}



.site-header {
    background: #111;
    color: #fff;
    padding: 0.5rem 1rem;
}

.site-header nav a {
    color: #fff;
    margin-right: 1rem;
    text-decoration: none;
}

.hero {
    padding: 2rem;
    background: #f6f6f6;
    text-align: center;
}

.products-grid .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 1rem;
}

.product-card {
    border: 1px solid #eee;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
}

.product-card img {
    max-width: 100%;
    height: 140px;
    object-fit: cover;
}

.price {
    font-weight: 700;
}

/* Header Navigation-------------------------------- */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #111; /* Dark header */
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
}



/* All right links/buttons white */
.nav-right a,
.nav-right .logout-btn {
    margin-left: -35px;
    text-decoration: none;
    font-size: 1rem;
    color: #fff; /* White text */
}

.logout-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 12px;
    cursor: pointer;
    border-radius: 5px;
}
.nav-right li {
  margin-left: 10px;
}

.logout-btn:hover {
    background-color: #e60000;
}

.cart-link {
    position: relative;
    font-weight: bold;
    text-decoration: none;
    color: #fff; /* White cart icon */
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
}
/* Signup page styling---------------------------------- */
.signup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background-color: #f6f6f6;
}

.signup-card {
    background: #fff;
    padding: 2rem 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.signup-card h2 {
    margin-bottom: 1.5rem;
    color: #111;
}

.signup-form p {
    margin-bottom: 1rem;
    text-align: left;
}

.signup-form input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.signup-btn {
    width: 100%;
    padding: 10px;
    background-color: #111;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.signup-btn:hover {
    background-color: #333;
}

.login-link {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.login-link a {
    color: #111;
    text-decoration: underline;
}
/*----------validation signup----------*/
.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.form-group input:focus {
    border-color: #111;
    outline: none;
}

.error {
    color: #ff4d4d;
    font-size: 0.875rem;
    margin-top: 4px;
}
/*----------login page----------*/
.login-container, .signup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-card, .signup-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-card h2, .signup-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-btn, .signup-btn {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    background-color: #111;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-btn:hover, .signup-btn:hover {
    background-color: #333;
}

.signup-link, .login-link {
    text-align: center;
    margin-top: 1rem;
}

/*----------cart page----------*/
.cart-container {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-container h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.cart-table th, .cart-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.cart-table th {
    background-color: #f8f8f8;
}

.remove-btn {
    background: #ff4d4d;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
}

.remove-btn:hover {
    background: #e60000;
}

.cart-summary {
    text-align: right;
}

.cart-actions {
    margin-top: 1rem;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
}

.continue-btn {
    background: #555;
    color: white;
}


.checkout-btn {
    background: #030303;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    font-size: 1rem;
}

.checkout-btn:hover {
    background: #00000089;
}

.continue-btn:hover {
    background: #333;
}



.empty-cart {
    text-align: center;
    margin-bottom: 1rem;
}

/*----------checkout page----------*/
.checkout-wrapper {
    max-width: 900px;
    margin: 2rem auto;
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.order-summary {
    border-right: 1px solid #eee;
    padding-right: 1.5rem;
}

.order-summary ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.order-summary li {
    padding: 5px 0;
    border-bottom: 1px solid #f1f1f1;
}

.total {
    text-align: right;
    font-size: 1.2rem;
    margin-top: 1rem;
}

.delivery-form .form-grid p {
    margin-bottom: 1rem;
}

.delivery-form input,
.delivery-form textarea,
.delivery-form select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}


/*----------home page----------*/
/* Hero Section */
.hero {
    background: #f6f6f6;
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero p {
    color: #555;
    font-size: 1.1rem;
}

/* Product Grid */
.products-grid {
    padding: 2rem;
}

.products-grid .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}

.product-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 230px;
    text-align: center;
}


.product-card img {
    max-width: 100%;
    height: 160px;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.price {
    font-weight: bold;
    color: #222;
    margin: 0.5rem 0;
}

.price .original {
    text-decoration: line-through;
    color: #888;
    font-size: 0.9rem;
    margin-left: 8px;
}

.discount-flash {
    position: absolute;
    top: 12px;
    left: -35px; /* shift left so it cuts across */
    background: #e53935;
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 6px 50px; /* wide enough to look like a ribbon */
    transform: rotate(-45deg); /* diagonal flash */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-transform: uppercase;
    z-index: 2;
}

/* Cart Form */
.cart-form {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.quantity-input {
    width: 50px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
}

.add-to-cart-btn {
    background: #111;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.add-to-cart-btn:hover {
    background: #333;
}

/*----------order history dashbord----------*/

.page-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    text-align: center;   /* Center align text */
}

.orders-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 30px auto;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.orders-table th,
.orders-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    color: #555;
}

.orders-table th {
    background-color: #f4f4f4;
    font-weight: 600;
}

.orders-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 12px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
}

.status-badge.pending { background-color: #f0ad4e; }
.status-badge.processing { background-color: #5bc0de; }
.status-badge.shipped { background-color: #0275d8; }
.status-badge.delivered { background-color: #5cb85c; }
.status-badge.cancelled { background-color: #d9534f; }

.order-link {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
}

.order-link:hover {
    text-decoration: underline;
}



/* Responsive */
@media (max-width: 768px) {
    .orders-table th, .orders-table td {
        padding: 10px 8px;
    }
    .page-title {
        font-size: 24px;
    }
}

/*----------admin cutumer list----------*/
.customers-table {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 30px auto;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.customers-table th, .customers-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.customers-table th {
    background-color: #f4f4f4;
    font-weight: 600;
}

.customers-table tr:last-child td {
    border-bottom: none;
}

.customers-table a {
    color: #007bff;
    text-decoration: none;
}

.customers-table a:hover {
    text-decoration: underline;
}




/*----------custumer list----------*/
.customer-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-family: Arial, sans-serif;
}

.customer-table th,
.customer-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.customer-table th {
    background-color: #f4f4f4;
    font-weight: 600;
}

.customer-table tr:nth-child(even) {
    background-color: #fafafa;
}

.customer-table a.btn {
    padding: 4px 10px;
    font-size: 13px;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 5px;
}

.customer-table a.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.customer-table a.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.customer-table a.btn:hover {
    opacity: 0.9;
}

/*----------custumer detailes----------*/
.customer-profile-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 700px;
    margin-bottom: 30px;
    font-family: Arial, sans-serif;
}

.customer-info p {
    margin: 8px 0;
    font-size: 15px;
}

.address-list {
    list-style: none;
    padding: 0;
}

.address-card {
    background: #f9f9f9;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.btn-secondary {
    display: inline-block;
    padding: 6px 12px;
    background-color: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.btn-secondary:hover {
    opacity: 0.9;
}


/*----------customer orders----------*/
.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

.orders-table th, .orders-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.orders-table th {
    background-color: #f4f4f4;
}

.orders-table tr:hover {
    background-color: #f9f9f9;
}

.btn-primary {
    padding: 5px 12px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    padding: 6px 12px;
    background-color: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.btn-secondary:hover {
    opacity: 0.9;
}


/*----------footer----------*/

.site-footer {
    background-color: #222;
    color: #fff;
    padding: 40px 20px 20px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-left, .footer-center, .footer-right {
    flex: 1;
    min-width: 200px;
}

.footer-left h3, .footer-center h4, .footer-right h4 {
    margin-bottom: 15px;
    color: #fff;
}

.footer-center ul {
    list-style: none;
    padding: 0;
}

.footer-center ul li {
    margin-bottom: 10px;
}

.footer-center ul li a {
    color: #bbb;
    text-decoration: none;
}

.footer-center ul li a:hover {
    color: #fff;
}

.social-icons a {
    margin-right: 10px;
    display: inline-block;
}

.social-icons img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #aaa;
    border-top: 1px solid #444;
    padding-top: 15px;
}

/*----------header----------*/


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

/* Container */
.container1 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    position: relative;
    height: 80px;         /* thin strip */
    overflow: visible;    /* allow logo to hang out */
  }


  
  /* Header strip */
  .site-header {
    background: linear-gradient(90deg, #0c0909, #1a0e0e);
    border-bottom: 2px solid #ff7a00;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    overflow: visible;
  }
  
  /* Logo group */
  .logo {
    display: flex;
    align-items: center;
    position: relative;
  }
  
  /* Logo image (hanging below header) */
  .logo-img {
    height: 170px;
    width: auto;
    margin-right: 12px;
    position: absolute;
    top: -50px;
    left: 10;
  }
  
  /* Brand text */
  .logo-link1 {
    text-decoration: none;
    font-size: 4rem;
    font-family: 'Satisfy', cursive;
    background: linear-gradient(90deg, #ffb700, #ff6600, #e63946);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 10px rgba(255, 102, 0, 0.4),
                 0 0 15px rgba(255, 183, 0, 0.5);
    position: absolute;
    top: -50px;
    left: 200px;
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
  }
  
  .logo-link1:hover {
    transform: scale(1.05);
    text-shadow: 0 0 12px rgba(255, 102, 0, 0.7),
                 0 0 20px rgba(255, 183, 0, 0.6),
                 0 0 30px rgba(230, 57, 70, 0.5);
  }
  .logo-link {
    position: absolute;
    top: 0px;
    left: -20px;
    transition: all 0.3s ease-in-out;
  }
  
  .logo-link:hover {
    transform: scale(1.05);
  }
  
  /* Navigation */
  .main-nav {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-shrink: 1;
  }
  
  .main-nav ul {
    display: flex;
    gap: 0px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
  }
  
  .main-nav ul.nav-right {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 0;
    padding: 0;
  }
  
  .main-nav a {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    color: #f2f2f2;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .main-nav a:hover {
    color: #ffb700;
    background: rgba(255, 183, 0, 0.15);
    box-shadow: 0 0 10px rgba(255, 183, 0, 0.4);
    transform: translateY(-2px);
  }
  
  .main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff7a00, #ffcc00);
    transition: width 0.3s ease, left 0.3s ease;
  }
  
  .main-nav a:hover::after {
    width: 100%;
    left: 0;
  }
  
  /* Cart link wrapper */
  .cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 1.2rem;
    color: #f2f2f2;
    text-decoration: none;
  }
  
  /* Cart badge */
  .cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: #e63946;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    line-height: 1;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
  }
  
  /* Logout */
  .logout-form {
    display: inline-flex;
    margin-left: 0px; /* pull button left */
  }
  
  .logout-btn {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    transition: all 0.2s ease;
    display: inline-block;
    margin-right: 0px; /* move left */
  }
  
  .logout-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  
  /* ================= RESPONSIVE ================= */
  @media (max-width: 768px) {
    .container1 {
      flex-wrap: wrap;
      height: auto;
      justify-content: center;
    }
  
    .logo {
      flex-direction: column;
      align-items: center;
    }
  
    .logo-img {
      height: 140px;
      position: static;
      margin: 0;
    }
  
    .logo-link1 {
      font-size: 3rem;
      position: static;
      margin-top: 10px;
    }
  
    .main-nav {
      flex-direction: column;
      width: 100%;
    }
  
    .main-nav ul {
      flex-direction: column;
      gap: 10px;
    }
  
    .main-nav ul.nav-right {
      flex-direction: column;
      width: 100%;
      gap: 10px;
    }
  }
  
/*----------home page slide----------*/
/* Slideshow Container */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 300px;
    max-height: 700px;
    overflow: hidden;
}

/* Individual Slides */
.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none; /* Initially hide all slides */
}

/* Make the first slide visible by default or with a class */
.slide:first-child {
    display: block; /* Show the first slide */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stylish Caption */
.captioncover {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: #e60026;
    padding: 12px 0;
    
    font-family: 'Great Vibes', cursive;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    background: rgba(0, 0, 0, 0.306);
    backdrop-filter: blur(1px);
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.587);

    transition: all 0.3s ease-in-out;
}

/* ===== Centered Products Grid ===== */
.products-grid {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.products-grid h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: #222;
    font-weight: 700;
}

/* Flex wrap grid with centered content */
.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* center all products horizontally */
    gap: 40px; /* space between products */
    list-style: none;
    padding: 0;
}

/* Individual product card */
.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 230px;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Product image */
.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Product info */
.product-card h3 {
    font-size: 1.2rem;
    margin: 15px 0 8px 0;
    color: #333;
    font-weight: 600;
}

.product-card .price {
    font-weight: 700;
    color: #e53935;
    margin-bottom: 15px;
}

/* Cart button */
.cart-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.quantity-input {
    width: 50px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    text-align: center;
}

.add-to-cart-btn {
    padding: 7px 14px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.add-to-cart-btn:hover {
    background: #115293;
}

/* Responsive layout */
@media (max-width: 1024px) {
    .product-card {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .product-card {
        width: 45%;
    }
    .grid {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .product-card {
        width: 100%;
    }
    .grid {
        gap: 20px;
    }
}
/*----------Product info home page----------*/
.products-info {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.products-info h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    font-weight: 700;
    color: #222;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.info-row.reverse {
    flex-direction: row-reverse;
}

.info-image {
    flex: 1 1 45%;
    min-width: 250px;
}

.info-image img {
    width: 100%;
    height: auto;          /* let height adjust automatically */
    border-radius: 15px;
    object-fit: contain;    /* show full image without cropping */
}

.info-text {
    flex: 1 1 50%;
    min-width: 250px;
}

.info-text h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.info-text .price {
    font-weight: 700;
    color: #e53935;
    margin-bottom: 10px;
}

.info-text .description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .info-row,
    .info-row.reverse {
        flex-direction: column;
        text-align: center;
    }
    .info-image,
    .info-text {
        flex: 1 1 100%;
    }
    .info-image img {
        height: 200px;
    }
}

/*----------dashbord ordive viwe----------*/

/* ===== Container ===== */
.container {
    max-width: 900px;
    margin: 30px auto;
    font-family: Arial, sans-serif;
}

/* ===== Card ===== */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* ===== Status Badge ===== */
.status-badge {
    color: #fff;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    text-transform: uppercase;
    display: inline-block;
}

/* Status colors */
.status-pending { background-color: #ffc107; }
.status-processing { background-color: #17a2b8; }
.status-shipped { background-color: #007bff; }
.status-delivered { background-color: #28a745; }
.status-cancelled { background-color: #dc3545; }
.status-unknown { background-color: #6c757d; }

/* ===== Table ===== */
table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

table th {
    background: #f4f4f4;
    text-align: left;
}

table tr:last-child td {
    font-weight: bold;
    background: #f9f9f9;
}

table td.text-center {
    text-align: center;
}

table td.text-right {
    text-align: right;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    background: #5500ff;
    margin-right: 10px;
    transition: 0.3s;
}

.btn:hover {
    opacity: 0.85;
}

/* ===== Headings ===== */
h2, h3 {
    color: #333;
}

h3 {
    margin-bottom: 10px;
    color: #444;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    table, table th, table td {
        font-size: 14px;
        padding: 8px;
    }

    .status-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/*----------product click----------*/
.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-link img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-link h3 {
    font-size: 1.1rem;
    margin: 5px 0;
}

.product-link p.price {
    color: #e53935;
    font-weight: 700;
}


/*----------Social media----------*/

.social-icons a {
    font-size: 24px;
    color: #fff;            /* Default icon color */
    transition: color 0.3s; /* Smooth hover effect */
}
.social-icons a:hover {
    color: #f39c12;         /* Hover color matches your heading */
}

/*----------mobile view----------*/
/*----------Mobile styles----------*/
@media (max-width: 768px) {

  main {
    padding-top: 45px; /* match header height */
  }

  .site-header {
    position: fixed;     /* 🔥 keep header visible */
    top: 0;
    left: 0;
    width: 100%;
    background: #111;    /* add solid bg so it doesn’t overlap text */
    padding: 8px 0;
    height: 45px;        /* taller so logo+name fit */
    z-index: 10000;      /* above content */
  }

  .container1 {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    height: auto;
    position: relative;
  }

  .logo-img {
    height: 85px;
    width: auto;
    margin: 0;
    position: relative;
    top: -5px;
    left: 5px;
    z-index: 2;
  }

  .logo-link1 {
    font-size: 2.2rem;
    margin: 0;
    position: relative;
    top: -5px;
    left: -100px;
    text-align: right;
    flex: 1;
    z-index: 1;
    white-space: normal;
  }

  .logo {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    position: relative;
  }
}
  
/*----------Mobile nave bar----------*/

/* Hide mobile nav by default */

/* Cart badge */
.cart-badge {
  background-color: red;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  line-height: 1;
  min-width: 18px;
  text-align: center;
  position: absolute;
  top: -5px;
  right: -10px;
}

/* 📱 Mobile view for Footer */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .footer-left,
  .footer-right {
    flex: 1 1 100%;
  }

  .footer-left p {
    font-size: 14px;
    line-height: 1.5;
  }

  .footer-right h4 {
    margin-bottom: 10px;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
  }

  .footer-bottom {
    font-size: 13px;
    margin-top: 20px;
  }
}
/* ===== Footer Contact Styling ===== */
.site-footer a[href^="mailto:"] {
  color: #ff9800;        /* orange for email */
  font-weight: 600;
  text-decoration: none;
}

.site-footer a[href^="tel:"] {
  color: #4caf50;        /* green for phone */
  font-weight: 600;
  text-decoration: none;
}

.site-footer a[href^="mailto:"]:hover {
  color: #e67e22;        /* darker orange on hover */
  text-decoration: underline;
}

.site-footer a[href^="tel:"]:hover {
  color: #2e7d32;        /* darker green on hover */
  text-decoration: underline;
}



/*----------Responsive Product Grid----------*/
.products-grid .grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* Tablet screens (≤1024px) → 3 per row */
@media (max-width: 1024px) {
  .products-grid .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile screens (≤768px) → 2 per row */
@media (max-width: 768px) {
  .products-grid .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .products-grid .product-card img {
    height: 140px; /* shorter images on mobile */
  }

  .products-grid .product-card h3 {
    font-size: 14px;
  }

  .products-grid .product-card .price {
    font-size: 14px;
  }
}

/* ================= MOBILE NAVIGATION CLEAN VERSION ================= */

/* Mobile nav sidebar */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -250px;      /* keep off-screen until opened */
  width: 220px;
  height: 100vh;      /* full screen height */
  background: #222;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 80px 20px 20px; /* push links down below header */
  transition: right 0.3s ease;
  z-index: 9999;       /* above everything */
  overflow-y: auto;
  overflow-x: hidden;  /* ✅ prevent black strip */
  transform: translateX(100%); /* ✅ start hidden off-screen */
}

/* Links inside nav */
.mobile-nav a {
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* When nav is open */
.mobile-nav.open {
  right: 0; /* slides into view */
  transform: translateX(0); /* ✅ slide in without overflow */
}

/* Hamburger icon */
.hamburger {
  display: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  z-index: 10000; /* stay above overlay */
}

/* Overlay behind nav (dark transparent background) */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* dark overlay */
  z-index: 9998;
  display: none; /* hidden by default */
}

/* Show overlay when nav is open */
.mobile-overlay.show {
  display: block;
}

/* Responsive behavior */
@media (max-width: 768px) {
  .main-nav {
    display: none;   /* hide desktop nav */
  }
  .hamburger {
    display: block;  /* show hamburger */
  }
}

/* Prevent horizontal scroll issues */
html, body {
  max-width: 100%;
  overflow-x: hidden; /* ✅ fixes black strip */
}

/* 📱 Mobile view for Product Highlights */
@media (max-width: 768px) {
  .info-row,
  .info-row.reverse {
    flex-direction: column !important;   /* stack vertically */
    text-align: center;
    gap: 20px;
    margin-bottom: 30px;
  }

  .info-image,
  .info-text {
    flex: 1 1 100% !important;
    max-width: 100%;
  }

  .info-image img {
    max-height: 220px;
    width: 100%;
    object-fit: contain;   /* show full image */
    border-radius: 12px;
  }

  .info-text h3 {
    font-size: 20px !important;
    margin-top: 10px;
  }

  .info-text .description,
  .info-text ul,
  .info-text .cta {
    font-size: 14px !important;
    line-height: 1.4;
  }

  .info-text ul {
    text-align: left;
    display: inline-block; /* keeps bullets aligned */
    margin: 10px auto;
    padding-left: 20px;
  }
}

/* 📱 Mobile cart responsive */
@media (max-width: 768px) {
  .cart-container {
    padding: 1rem;
    margin: 1rem;
  }

  .cart-table,
  .cart-table thead,
  .cart-table tbody,
  .cart-table th,
  .cart-table td,
  .cart-table tr {
    display: block;
    width: 100%;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table tr {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #fafafa;
  }

  /* ✅ fix: labels and values side by side */
  .cart-table td {
    position: relative;
    padding: 8px 12px 8px 120px; /* space for label on left */
    text-align: left;
    white-space: normal;
    word-break: break-word;
    box-sizing: border-box;
  }

  .cart-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    top: 8px;
    width: 100px;              /* fixed label column */
    font-weight: bold;
    color: #555;
    text-align: left;
  }

  /* ✅ Product name styling */
  .cart-table td[data-label="Product"] {
    font-weight: 600;
    color: #333;
  }

  /* ✅ Summary section */
  .cart-summary {
    text-align: center;
    margin-top: 20px;
  }

  .cart-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* ✅ Buttons full width */
  .continue-btn {
    background: #1976d2;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
    width: 100%;
    text-align: center;
  }
  .continue-btn:hover {
    background: #1259a5;
  }

  .checkout-btn {
    background: #e53935;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: 0.3s ease;
    width: 100%;
    text-align: center;
  }
  .checkout-btn:hover {
    background: #b71c1c;
  }
}


/*    order detail */
@media (max-width: 768px) {
  table, thead, tbody, tr, th, td {
    display: block;
    width: 100%;
  }

  thead {
    display: none; /* hide table header on mobile */
  }

  tr {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
  }

  td {
    padding: 8px;
    text-align: right;
    position: relative;
    white-space: normal;
    word-break: break-word;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    top: 8px;
    font-weight: bold;
    color: #555;
    text-align: left;
  }

  /* ✅ Special fix for Action column */
  td[data-label="Action"] {
    text-align: center;
    padding-top: 30px; /* give space so label doesn’t overlap button */
  }

  td[data-label="Action"]::before {
    top: 0;
    left: 10px;
    position: relative; /* put label above button */
    display: block;
    margin-bottom: 6px;
    text-align: left;
  }

  /* Buttons full width for mobile */
  td[data-label="Action"] a {
    display: block;
    width: 100%;
    margin-top: 5px;
  }
}



@media (max-width: 768px) {
  .orders-table,
  .orders-table thead,
  .orders-table tbody,
  .orders-table th,
  .orders-table td,
  .orders-table tr {
    display: block;
    width: 100%;
  }

  .orders-table thead {
    display: none; /* hide headers */
  }

  .orders-table tr {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    padding: 10px;
  }

  .orders-table td {
    padding: 8px 12px;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    box-sizing: border-box;
  }

  .orders-table td::before {
    content: attr(data-label);
    display: block;        /* ✅ label on its own line */
    font-weight: bold;
    color: #555;
    margin-bottom: 4px;    /* ✅ spacing between label & value */
  }

  /* Product styling */
  .orders-table td[data-label="Product"] {
    font-weight: 600;
    color: #333;
  }

  /* Grand total row highlight */
  .orders-table tr:last-child {
    background: #fff3e0;
    font-weight: bold;
    border: 2px solid #ff9800;
  }
}

/*----------order history dashbord----------*/

/*----------order history dashbord----------*/