body {
    font-family: SuisseIntl, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    margin: 0;
    padding: 0;
    padding-top: 120px; /* Adjusted for new larger header height */
    color: #333;
    background: #F4F4F4;
    overflow-x: hidden; /* Prevent horizontal scroll on smaller screens */
}

main
{
    margin: 0 auto;
    max-width: 1360px;
    padding: 0 20px; /* Add padding for smaller screens */
}

/* Old header styles - now disabled for new design */
header.old-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensure space between elements */
    padding: 10px 20px; /* Reduced padding to account for logo padding */
    background-color: #2C5F99;
    color: #FFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap; /* Allow wrapping on small screens */
    min-height: 90px; /* Increased to accommodate larger logo */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

/* Old logo styles - disabled for new design */
.logo.old-logo {
    padding: 15px 0; /* Add padding between logo and top/banner */
}

.logo-link.old-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo.old-logo img {
    height: 60px; /* Increased from 40px to make logo bigger */
    margin-right: 10px;
}

.logo.old-logo:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.search-bar {
    flex: 0 0 25%;
    margin: 0 20px;
    position: relative;
    display: none; /* Initially hidden */
    transition: all 0.3s ease;
}

.search-bar.active {
    display: block;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ccc;
    border-radius: 20px;
}

.search-bar::after {
    content: '🔍';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #666;
    pointer-events: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Old navigation styles - disabled for new design */
.front.old-nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.front.old-nav ul li {
    margin-right: 20px;
}

.front.old-nav ul li a {
    text-decoration: none;
    color: #FFF;
    font-weight: bold;
}

.front.old-nav ul li a.active {
    font-weight: bold;
    border-bottom: 2px solid #333;
    color: #F4F4F4;
}

/* Smooth scrolling for footer links */
html {
    scroll-behavior: smooth;
}

/* Search toggle functionality */
.search-toggle {
    cursor: pointer;
}

.footer-link {
    cursor: pointer;
}

/* Old mobile responsive adjustments - disabled for new design */
@media (max-width: 768px) {
    .logo.old-logo img {
        height: 50px; /* Slightly smaller on mobile */
    }

    .search-bar.old-search {
        flex: 0 0 100%;
        margin: 10px 0;
        order: 3; /* Move search bar below navigation on mobile */
    }

    header.old-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .front ul {
        justify-content: center;
    }
}

.front ul li a:hover {
    font-weight: bold;
    text-decoration: none;
    color: #c4b7b7;
}

.user-profile img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    background-color: #FFF3EC;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.5em;
    color: #333;
    max-width: 600px;
}

.hero-image img {
    max-width: 300px;
}

.slick-slider {
    margin-left: 0;
}

.slick-list {
    padding-left: 0 !important;
}

.slick-track {
    margin-left: 0;
}

.successful-coupons .slick-slider {
    margin: 0 -15px;
}

.successful-coupons .slick-slide {
    padding: 0 15px;
}

.successful-coupons .coupon-item {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    background-color: #fff;
    margin: 10px 10px;
}

.successful-coupons .coupon-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin: 10px auto;
}

.successful-coupons .coupon-item h3 {
    margin: 10px 0;
    font-size: 1.1em;
}

.successful-coupons .coupon-item p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #666;
}

.successful-coupons .slick-prev,
.successful-coupons .slick-next {
    z-index: 1;
}

.successful-coupons .slick-prev {
    left: -20px;
}

.successful-coupons .slick-next {
    right: -20px;
}

.successful-coupons .slick-prev:before,
.successful-coupons .slick-next:before {
    color: #333;
}

.trending-stores {
    padding: 30px;
    overflow: hidden;
}

main h2 {
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
    margin-top: 20px;
    font-size: 24px;
    line-height: 28px;
    color: #000000;
    display: flex;
}

.coupon-list {
    margin: 0 -10px;
}

.coupon-item {
    padding: 0 10px;
}

.slick-prev, .slick-next {
    z-index: 1;
}

.slick-prev {
    left: 10px;
}

.slick-next {
    right: 10px;
}

.slick-prev:before, .slick-next:before {
    color: #333;
}

.coupon-item img, .store-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
}

.coupon-item h3, .store-item h3 {
    margin: 10px 0;
}

.coupon-item p, .store-item p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #666;
}

.coupon-item a
{
    text-decoration: none;
    color: inherit;
}

.coupon-item a:hover
{
    border: solid 1px #666;
    background-color: #F4F4F4;
}

aside {
    width: 250px;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    margin-right: 20px;
}

.apple-logo {
    width: 50px;
    height: 50px;
    background-color: #e0e0e0;
    margin-bottom: 10px;
}

.following, .shop-now {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.following {
    background-color: white;
    border: 1px solid #e0e0e0;
}

.shop-now {
    background-color: #2C5F99;
    color: white;
}

.deals {
    flex-grow: 1;
}

.deal-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.deal-card {
    border: 1px solid rgb(224, 224, 224);
    padding: 20px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px;
    min-height: 128px;
    border-radius: 5px;
    background-color: rgb(255, 255, 255);
}

.deal-type {
    color: #2C5F99;
    font-size: 0.8em;
}

.deal-card button {
    background-color: #2C5F99;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* Footer Styles */
footer {
    background-color: #f8f8f8;
    padding: 40px 20px;
    font-size: 14px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0px auto;
}

.footer-column {
    flex: 1;
    margin-right: 20px;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style-type: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #666;
    text-decoration: none;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-buttons img {
    height: 40px;
}

.trademark-info {
    font-size: 10px;
    color: #999;
    margin-top: 10px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-selector {
    display: flex;
    gap: 10px;
}

.language-selector select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.user-profile {
    position: relative;
    display: flex;
    align-items: center;
}

.user-menu-toggle {
    cursor: pointer;
    margin-left: 5px;
    font-size: 20px;
}

.user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.user-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.user-menu ul li {
    padding: 10px 20px;
}

.user-menu ul li a {
    color: #333;
    text-decoration: none;
}

.user-menu ul li a:hover {
    color: #007bff;
}

.user-menu.show {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.store-header {
    width: 20%;
    padding: 20px;
    box-sizing: border-box;
}

.applecard
{
    padding: 10px;
    background: #FFF;
}

.store-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.store-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.store-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-following, .btn-shop-now {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

.btn-following {
    background-color: #f0f0f0;
    color: #333;
}

.btn-shop-now {
    background-color: #2C5F99;
    color: white;
}

.store-name h1 {
    font-size: 36px;
    margin-bottom: 5px;
}

.store-name p {
    font-size: 18px;
    color: #666;
}

.deals-section 
{
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
}

.deals-section h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.deals-section > p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.see-less {
    color: #2C5F99;
    text-decoration: none;
}

.deals-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.deal-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.deal-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.deal-info {
    flex-grow: 1;
    
}

.deal-type {
    display: inline-block;
    background-color: #e6f3ff;
    color: #0066cc;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.deal-info h4 {
    font-size: 18px;
    margin: 0;
}

a.btn-get-deal {
    background-color: #2C5F99;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

a.btn-get-deal:hover
{
    color: #F4F4F4;
}

.coupon-container {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
  }

  .logo-container {
    width: 120px;
    height: 60px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: #fafafa;
    border-radius: 8px;
    border: 1px solid #eee;
  }

  .coupon-container .logo {
    max-width: 110px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
  }

  .coupon-details {
    flex-grow: 1;
  }

  .coupon-container  h2 {
    font-size: 16px;
    margin: 0 0 5px 0;
  }

  .popular-tag {
    color: #00a5e0;
    font-size: 14px;
    margin: 0 0 10px 0;
  }

  .star {
    font-size: 16px;
  }

  .coupon-stats {
    display: flex;
    gap: 10px;
  }

  .stat {
    background-color: #f0f0f0;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    color: #666;
  }

  .coupon-code {
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 15px;
  }

  .get-coupon-btn {
    background-color: #2C5F99;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
  }

  .card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: 300px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.applecard img {
    width: 120px;
    display: block;
    margin-bottom: 10px;
    text-align: center;
    margin: auto;
}
.applecard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}
.applecard-header h2 {
    font-size: 24px;
    margin: 0;
}
.applecard-header .following {
    color: #e74c3c;
    font-size: 14px;
    display: flex;
    align-items: center;
}
.applecard-header .following i {
    margin-right: 5px;
}
.applecategory {
    color: #777;
    font-size: 14px;
    margin: 10px 0;
}
.appleshop-now {
    background-color: #d35400;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}
.appleshop-now:hover {
    background-color: #e67e22;
}
.appleshop-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    text-decoration: none;
    color: #333;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}
.appleshop-link:hover {
    color: #777;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 140px; /* Just enough for taller mobile header */
    }

    header {
        flex-direction: column;
        text-align: center; /* Stack items vertically */
        padding: 10px 20px;
        min-height: 140px;
    }

    .search-bar {
        margin: 10px 0;
    }

    .front ul {
        justify-content: center;
    }

    .hero {
        flex-direction: column; /* Stack hero content vertically */
    }

    .hero-image img {
        width: 100%; /* Adjust image to full width on smaller screens */
        max-width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Adjust grid for smaller screens */
    }

    .product {
        padding: 10px;
    }

    footer {
        text-align: center; /* Stack footer items on smaller screens */
    }

    .footer-column {
        margin-bottom: 20px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
    }

    .container {
        flex-direction: column;
    }
    
    .store-header {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 20px;
    }

    .deals-section {
        width: 100%;
    }

    .store-name {
        text-align: center;
        margin-top: 20px;
    }

    .deal-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-get-deal {
        margin-top: 15px;
    }
}


.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px; /* Space between grid items */
    padding: 20px;
}

.product {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Adjustments for smaller devices like phones */
@media (max-width: 480px) {
    body {
        padding-top: 160px; /* Just enough for very small screens */
    }

    header {
        min-height: 160px;
    }

    .hero-content h1 {
        font-size: 1.8em;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product {
        padding: 10px;
    }
}

/* Add these styles to your shops.css file */
.subscription-toggles {
    padding: 10px 15px;
}

.toggle-item {
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.toggle-item label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.toggle-item input[type="checkbox"] {
    margin-left: 10px;
}

/* New Header Design - Design Quarter Style */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background-color: #FFFFFF;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-height: 120px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    gap: 60px;
    align-items: center;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
    padding: 10px 0;
}

.nav-menu li a:hover {
    color: #666;
}

.nav-menu li a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #333;
}

/* Logo Container on Right */
.header-logo {
    display: flex;
    align-items: center;
    position: absolute;
    right: 0;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-container {
    background-color: #1e3a8a;
    color: #FFF;
    padding: 15px;
    border-radius: 0;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.logo-text {
    font-weight: bold;
    font-size: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* User Profile Adjustments */
.user-profile {
    position: absolute;
    top: 10px;
    right: 250px;
    z-index: 1001;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-header {
        min-height: 100px;
    }

    body {
        padding-top: 100px;
    }

    .nav-menu {
        gap: 40px;
    }

    .nav-menu li a {
        font-size: 16px;
    }

    .logo-container {
        width: 120px;
        height: 120px;
        padding: 15px;
    }

    .logo-text {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .main-header {
        min-height: 90px;
    }

    body {
        padding-top: 90px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #FFFFFF;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .main-nav.active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    .nav-menu li {
        border-bottom: 1px solid #eee;
        padding: 15px 0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .header-logo {
        margin-left: 0;
    }

    .logo-container {
        width: 100px;
        height: 100px;
        padding: 10px;
    }

    .logo-text {
        font-size: 14px;
    }

    .user-profile {
        right: 120px;
        top: 5px;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 0 15px;
    }

    .nav-menu {
        padding: 15px;
    }

    .logo-container {
        width: 70px;
        height: 70px;
        padding: 8px;
    }

    .logo-text {
        font-size: 12px;
    }
}

/* Disabled Button Styles */
.get-coupon-btn:disabled {
    background-color: #6c757d;
    color: white;
    cursor: not-allowed;
    opacity: 0.6;
}

.get-coupon-btn:disabled:hover {
    background-color: #6c757d;
    transform: none;
}

/* Simple tooltip for hover messages */
[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0.9;
}

[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    margin-bottom: -5px;
    z-index: 1000;
}


