/* Global Reset taake kahin bhi unwanted space na aaye */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    overflow-x: hidden; /* Side ki extra horizontal scrolling ya space ko rokne ke liye */
}
#header{
    background-color: #0F2537;
    color: black;
    width: 100%;
    height: 90px;
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
#logo-name{
    margin: 0;
    color:#fffbfd;
    font-size: 24px;
    font-weight: bold;
}
.nav-links a, .nav-bar a {
    white-space: nowrap; /* Text ko do lines mein totnay se rokay ga */
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    
}
#h3{
    margin: 10;
    text-align: left;
    color: rgb(253, 252, 252);
}
.logo-container{
    display: flex;
    align-items: center;
    gap: 12px;
    width: 20%;
}

.nav-bar{
   
    display: flex;
    align-items: center;
}
a{
    text-decoration: none;
    color: rgb(254, 253, 253);
    padding: 5px;
    font-weight: 700;
    
}
a:hover{
    color:#4D8B7A;
}
.dropdown{
    display: inline-block;
    position: relative;
}
.dropdown-content{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba( 0 0 0 0.15);
    z-index: 100;
    border-radius: 4px;
}
.dropdown-content a{
    display: block;
    padding: 10px 15px;
    color: #212529;
    font-weight: 500;
    white-space: nowrap;
}
.dropdown:hover .dropdown-content{
    display: block;
}
 .dropdown-content a:hover{
    background-color: #f8f9fa;
    color: #4D8B7A;
 }
 /* Right actions styling */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Search Box Styling */
.search-box {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 3px 8px;
    background-color: #f9f9f9;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    padding: 5px;
    font-size: 13px;
    width: 140px;
}

.search-box button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
}

/* Theme Toggle Button */
.theme-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.theme-btn:hover {
    background-color: #f0f0f0;
}
/* Page Header Banner */
.page-header {
  background-color: #0f172a;
  color: #ffffff;
  text-align: center;
  padding: 40px 20px;
}

.page-header h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.page-header p {
  color: #94a3b8;
  font-size: 16px;
}

/* Shop Layout Structure */
.shop-container {
    display: flex;
    gap: 30px;
    padding: 40px 6%;
    width: 100%;
    box-sizing: border-box;
}

/* Sidebar Filters */
.shop-sidebar {
  flex: 1;
  max-width: 250px;
  background-color: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  height: fit-content;
}

.shop-sidebar h3 {
  font-size: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 8px;
}

.filter-group {
  margin-bottom: 25px;
}

.filter-group h4 {
  font-size: 16px;
  margin-bottom: 12px;
}

.filter-group ul {
  list-style: none;
  padding: 0;
}

.filter-group ul li {
  margin-bottom: 10px;
}

.filter-group ul li label {
  cursor: pointer;
  font-size: 14px;
  color: #334155;
}

.filter-group input[type="range"] {
  width: 100%;
  margin-top: 8px;
}

/* Main Shop Content */
.shop-main {
  flex: 3;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.sort-dropdown {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  outline: none;
}

/* Product Cards Layout (Grid View) */
.products-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
}
.shop-main {
    flex: 3; /* Yeh sidebar ke ilawa baaki saari screen products ko de dega */
    width: 100%;
    box-sizing: border-box;
}

.product-card {
    width: 100% !important;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex !important;
    flex-direction: column !important;
}

.product-card img {
    width: 100% !important;
    height: 220px !important; /* Fixed height taake image zoom na ho */
    object-fit: contain !important;
    background-color: #ffffff;
    
}
/* --- Product Card Hover Effect --- */

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.product-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

.product-card img {
    transition: transform 0.3s ease !important;
}

.product-card:hover img {
    transform: scale(1.05) !important;
}

.product-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info h3 {
  font-size: 15px;
  color: #1e293b;
  margin-bottom: 8px;
}

.rating {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 8px;
}

.rating span {
  color: #64748b;
}

.price-box {
  margin-top: auto;
  margin-bottom: 12px;
}

.price {
  font-size: 18px;
  font-weight: bold;
  color: #0f172a;
}

.old-price {
  font-size: 14px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 8px;
}

.add-to-cart-btn {
  width: 100%;
  padding: 10px;
  background-color: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.add-to-cart-btn:hover {
  background-color: #1e293b;
}

.footer {
    background-color: #0b132b;
    color: #f8fafc;
    padding: 50px 0 20px 0;
    width: 100vw;               /* Screen ki poori width */
    position: relative;
    left: 50%;
    right: 140%;
    margin-left: -40vw;       /* Left aur right margins ko zero kar ke poori screen par failana */
    margin-right: -60vw;
    box-sizing: border-box;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 30px auto;   /* Andar ka content bilkul center mein rahega */
    gap: 40px;
}

.footer-col {
    flex: 1;
}

/* Headings Styling */
.footer-about h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #38bdf8;
    letter-spacing: 1px;
}

.footer-links h4, 
.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #38bdf8;
    padding-bottom: 5px;
    border-bottom: 2px solid #38bdf8;
    display: inline-block;
}

/* Paragraphs & Text */
.footer-about p, 
.footer-contact p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Quick Links List Styling */
.footer-links ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #ffffff;
}

/* Footer Bottom Copyright */
.footer-bottom {
    text-align: center;
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    margin-top: 20px;
    color: #64748b;
    font-size: 13px;
}

/* Toast Notification Styling */
#toast-notification {
    visibility: hidden;
    min-width: 250px;
    background-color: #0f2537;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    position: fixed;
    z-index: 1000;
    right: 30px;
    bottom: 30px;
    font-size: 16px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: visibility 0.3s, opacity 0.3s ease-in-out;
    opacity: 0;
}

#toast-notification.show {
    visibility: visible;
    opacity: 1;
}

/* Product Card Counter and Button Styling */
.product-card .add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background-color: #0f2537;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.product-card .add-to-cart-btn:hover {
    background-color: #1b3b54;
}

.counter-control button:hover {
    opacity: 0.7;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-about,
.footer-links,
.footer-contact {
    flex: 1;
    min-width: 200px;
    margin: 0 15px;    
}



