

body, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden; 
}
/* Container */
.container {
  margin: 0 auto;
  padding: 0 1rem;
}

.header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(8px);
  z-index: 50;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

/* Left Section: Logo + Nav */
.left-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  font-weight: bold;
  text-decoration: none;
  color: #111827;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  color: #4b5563;
  font-size: 16px;
  font-weight: 800;
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: #111827;
}

/* Right Section: Search + Country */
/* Right Section */
.right-section {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap; /* prevent wrapping */
}

/* Search */
.search-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 10px;
}

.input-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px; /* Adjust if needed */
}

.search-input {
  width: 100%;
  padding: 10px 12px 10px 40px; /* left padding for icon */
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
}


/* Country Selector */
.country-selector {
  flex-shrink: 0;
}

.country-selector select {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.875rem;
  background: white;
  cursor: pointer;
  white-space: nowrap;
}


/* Sign in button */
.sign-in-button {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Main content */


.grid-container {
    display: grid;
    grid-template-columns:  6fr 1fr;
    gap: 1.5rem;
    
}



@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none;
    }
}

/* Deals section */
.deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.deal-content {
    padding: 1rem;
}

.deal-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.deal-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.deal-store {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.deal-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: bold;
    font-size: 1.125rem;
}

.discount {
    color: #059669;
    font-size: 0.875rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .nav {
        display: none;
    }

    .search-input {
        width: 200px;
    }
}


@media (max-width: 992px) {
    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .deals-grid {
        grid-template-columns: 1fr;
    }
}


/* List view */

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
  }
  
.deals-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.deals-grid.list-view .deal-card {
    display: flex;
    gap: 1.5rem;
}

.deals-grid.list-view .deal-image {
    width: 200px;
    height: 150px; /* Fixed height */
    flex-shrink: 0;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}


.deals-grid.list-view .deal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* View toggle button styles */
.view-toggle {
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.view-toggle:hover {
    background-color: #f3f4f6;
}

.view-toggle.list-active .grid-icon {
    display: none;
}

.view-toggle.list-active .list-icon {
    display: block;
}

.view-toggle .grid-icon {
    display: block;
}

.view-toggle .list-icon {
    display: none;
}

@media (max-width: 640px) {
    .deals-grid.list-view .deal-card {
        flex-direction: column;
    }

    .deals-grid.list-view .deal-image {
        width: 100%;
    }
}


/* Make cards smaller */
.deal-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-size: 0.875rem; /* Smaller text */
}



/* Ad bar styles */
.bar.adbar.gads {
    width: 100%;
    min-height: 90px;
    background: #f9fafb;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1; /* Span all columns */
}



.deal-image {
    width: 100%;
    height: 140px; /* Fixed height */
    object-fit: contain; /* Preserve full image without cropping */
    border-radius: 6px;
    background-color: #f9f9f9; /* For small images' padding */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .deal-title {
    font-size: 14px;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
    color: #333;
    margin: 5px 0;
} */




.price .offer-price {
    color: #28a745;
    font-size: 18px;
    font-weight: bold;
}

.deal-store {
    font-size: 12px;
    color: #555;
}

.deal-link {
    display: block;
    text-align: center;
    background: #28a745;
    color: white;
    padding: 6px;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 10px;
    text-decoration: none;
}

.deal-link:hover {
    background: #218838;
}
.deal-time {
    margin-bottom: 10px;
  }
  
.deal-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: gray;
    margin-top: 8px;
}

.deal-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.deal-stats i {
    color: #555;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.modal-content {
    background: rgb(233, 232, 232);
    width: 60vw; /* Increased width */
    max-width: 600px; /* Ensures it's not too wide */
    margin: 8% auto;
    padding: 20px;
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-body {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Title at the top */
.modal-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
}

.modal-content-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 10px;
}

.modal-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.modal-body img {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 5px;
}

.modal-details {
    flex: 2;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
}

/* Align store name and price */
#modal-store {
    font-size: 16px;
    font-weight: bold;
}

/* .deal-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 16px;
    font-weight: bold;
    margin-top: 5px;
}*/

 .offer-price {
    color: #28a745;
    font-size: 20px;
    font-weight: bold;
} 

.original-price {
  
    color: red;
    font-size: 14px;
}



/* Comment section as usual */
/* .comment-section {
    margin-top: 15px;
    text-align: left;
    width: 100%;
}


.deal-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    justify-content: center;
}

.deal-actions button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
} */

/* Like Button */
.like-btn {
    background:grey; /* Red shade */
    color: white;
}

.like-btn:hover {
    background: grey; /* Darker red */
}

/* Copy Link Button */
.copy-link-btn {
    background:grey; /* Blue shade */
    color: white;
}

.copy-link-btn:hover {
    background: grey; /* Darker blue */
}

/* Icon Styling */
.deal-actions button i {
    font-size: 18px;
}
.deal-actions button:disabled {
    background: gray;
}



/* #comment-input {
    width: 100%;
    height: 50px;
    margin-top: 5px;
}

#submit-comment {
    margin-top: 5px;
    padding: 8px 12px;
    background: #28a745;
    color: white;
    border: none;
    cursor: pointer;
} */



 


/*.comment-section {
    margin-top: 10px;
    text-align: left;
}

#comment-input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

#submit-comment {
    background-color: #28a745;
    color: white;
    padding: 6px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 5px;
    font-size: 14px;
}  */

/* .login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
} */

/* .login-modal-content {
    background: white;
    border-radius: 10px;
    width: 320px;
    text-align: center;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    animation: loginFadeIn 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.login-modal-header {
    background-color: #16a34a; 
    color: white;
    padding: 20px;
    position: relative;
}

.login-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.login-modal-body {
    padding: 20px;
}

.login-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: white;
}

.login-form-group {
    margin-bottom: 15px;
    text-align: left;
}

.login-form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

.login-modal-body input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    box-sizing: border-box;
}

.login-modal-body input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.login-modal-body button {
    width: 100%;
    padding: 12px;
    background-color: #16a34a; 
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 10px;
}

.login-modal-body button:hover {
    background-color: #15803d; 
}

#login-error {
    color: red;
    margin: 10px 0;
    font-size: 14px;
    text-align: left;
    min-height: 20px;
}

.login-toggle-text {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.login-toggle-text a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 500;
}

.login-toggle-text a:hover {
    text-decoration: underline;
}


@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} */

#deal-modal {
    display: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#deal-modal.show {
    display: block;
    visibility: visible;
    opacity: 1;
}
#deal-modal {
    z-index: 9999 !important; 
    position: fixed !important; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.stores-container {
    max-width: 1200px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 30px;
}

.page-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    font-weight: 700;
}

.store-index {
    margin-bottom: 25px;
    color: #666;
    font-size: 15px;
    text-align: center;
    font-weight: 500;
}

.alphabet-section {
    margin-bottom: 40px;
}

.alphabet-title {
    font-size: 24px;
    color: #0a4275;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.store-link {
    color: #444;
    text-decoration: none;
    font-size: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background-color: #f9f9f9;
    display: block;
}

.store-link:hover {
    background-color: #e6e6e6;
    color: #0a4275;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}


.breadcrumb {
        padding: 20px 0;
        display: flex;
        align-items: center;
    }
    
    .breadcrumb a {
        color: #0a4275;
        text-decoration: none;
        font-size: 14px;
        transition: color 0.2s;
    }
    
    .breadcrumb a:hover {
        color: #083158;
        text-decoration: underline;
    }
    
    .breadcrumb i {
        margin: 0 10px;
        color: #aaa;
        font-size: 12px;
    }
    
    /* Store Detail Styles */
    .store-detail {
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 20px rgba(0,0,0,0.05);
        padding: 30px;
        margin-bottom: 40px;
    }
    
    .store-header {
        margin-bottom: 30px;
    }
    
    .store-title {
        font-size: 28px;
        color: #222;
        margin-bottom: 25px;
        font-weight: 600;
        line-height: 1.3;
    }
    
    .store-info {
        display: flex;
        align-items: flex-start;
        margin-bottom: 30px;
    }
    
    .store-logo-container {
        width: 140px;
        height: 140px;
        margin-right: 30px;
        background-color: #f9f9f9;
        border: 1px solid #eee;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        padding: 15px;
    }
    
    .store-logo {
        max-width: 110px;
        max-height: 110px;
    }
    
    .store-description {
        flex: 1;
    }
    
    .store-description p {
        color: #555;
        line-height: 1.7;
        margin-bottom: 20px;
        font-size: 15px;
    }
    
    .visit-store-btn {
        display: inline-block;
        background-color: #0a9cde;
        color: #fff;
        padding: 12px 25px;
        border-radius: 6px;
        text-decoration: none;
        font-weight: 600;
        font-size: 15px;
        transition: all 0.3s;
        box-shadow: 0 4px 6px rgba(10, 156, 222, 0.2);
    }
    
    .visit-store-btn:hover {
        background-color: #0885c0;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(10, 156, 222, 0.25);
    }
    
    .store-rating {
        margin-top: 20px;
        background-color: #f9f9f9;
        padding: 15px;
        border-radius: 8px;
        display: inline-block;
    }
    
    .rating-stars {
        color: #ffc107;
        margin-bottom: 8px;
        font-size: 18px;
    }
    
    .rating-text {
        color: #555;
        font-size: 14px;
        font-weight: 500;
    }
    

/* Responsive adjustments */
@media (max-width: 1024px) {
    .store-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .store-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .store-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 28px;
    }
}

 /* Store Page Styles */
 

.stores-container {
    max-width: 1200px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 30px;
}

.page-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    font-weight: 700;
}

.store-index {
    margin-bottom: 25px;
    color: #666;
    font-size: 15px;
    text-align: center;
    font-weight: 500;
}

.alphabet-section {
    margin-bottom: 40px;
}

.alphabet-title {
    font-size: 24px;
    color: #0a4275;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.store-link {
    color: #444;
    text-decoration: none;
    font-size: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background-color: #f9f9f9;
    display: block;
}

.store-link:hover {
    background-color: #e6e6e6;
    color: #0a4275;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}



/* Responsive adjustments */
@media (max-width: 1024px) {
    .store-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .store-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .store-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 28px;
    }
}

.store-logo-container {
    width: 140px;
    height: 140px;
    margin-right: 30px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    padding: 15px;
}

.store-logo {
    max-width: 110px;
    max-height: 110px;
}

.store-description {
    flex: 1;
}

.store-description p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

.visit-store-btn {
    display: inline-block;
    background-color: #0a9cde;
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(10, 156, 222, 0.2);
}

.visit-store-btn:hover {
    background-color: #0885c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(10, 156, 222, 0.25);
}
 

/* Sidebar styles */
.sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.featured-stores {
    background-color: #fff;
    border-radius: 30px; /* was 20px */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
}


.featured-stores h4 {
    color: #0a4275;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaedf0;
    font-weight: 600;
}

/* Store box grid */
.store-box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.store-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background-color: #f8f9fa;
    border: 1px solid #e6e8eb;
    border-radius: 8px;
    padding: 15px 10px;
    transition: all 0.2s ease;
    text-align: center;
}

.store-box:hover {
    background-color: #f0f7ff;
    border-color: #c9e3f5;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.store-box-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.store-box-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.store-box-name {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

/* Original list styles for other sections */
.featured-stores ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.featured-stores li {
    margin-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 12px;
}

.featured-stores li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.featured-stores li a {
    color: #444;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 14px;
    transition: color 0.2s;
    padding: 5px 0;
}

.featured-stores li a:hover {
    color: #0a9cde;
}

.featured-stores li a::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
    color: #0a9cde;
}
.modal-store-info {
    display: flex;
    align-items: center;
    font-size: 20px;
    color: gray;
}

.modal-store-info .deal-percentage {
    color: #059669;
    font-weight: bold;
    font-size: 20px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .store-box-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .store-box-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



        


    