/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007bff;
    --secondary-color: #343a40;
    --text-color: #333;
    --light-gray: #f8f8f8;
    --border-color: #e0e0e0;
    --green-tag: #28a745;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

img,
picture,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Header */
.top-header {
    background-color: var(--light-gray);
    padding: 10px 0;
    font-size: 14px;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-header-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.top-header-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-header-left a,
.top-header-right a {
    color: var(--text-color);
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s;
}

.top-header-left a:hover,
.top-header-right a:hover {
    color: var(--primary-color);
}

.top-header-right a i {
    margin-right: 5px;
}

.facebook-login {
    color: #1877f2 !important;
}

/* Language Switcher */
.language-switcher {
    display: flex !important;
    gap: 5px;
    margin-right: 15px;
    align-items: center;
    order: -1; /* En sola taşı */
    visibility: visible !important;
    opacity: 1 !important;
}

.top-header-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.lang-btn {
    background: white !important;
    border: 1px solid var(--border-color) !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
    transition: all 0.3s !important;
    min-width: 42px !important;
    text-align: center !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.lang-btn:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.lang-btn.active {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.lang-btn span {
    display: inline-block;
}

/* Main Header */
.main-header {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Logo */
.logo-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #2c3e50, #1a1a1a);
    border-radius: 50%;
    padding: 15px;
    width: 120px;
    height: 120px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #2c3e50;
    position: relative;
}

.anvil-icon {
    font-size: 30px;
    color: white;
    margin-bottom: 5px;
}

.stars {
    color: white;
    font-size: 12px;
    margin-bottom: 5px;
}

.logo-text {
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

.logo a {
    text-decoration: none;
}

.logo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #2c3e50;
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 600px;
    display: flex;
    gap: 0;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: var(--primary-color);
}

.search-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #23272b;
}

/* Cart Section */
.cart-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-icon-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

.cart-icon-btn:hover {
    background-color: #0056b3;
}

.cart-info {
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
}

.cart-info:hover {
    background-color: var(--light-gray);
}

.cart-info span {
    font-weight: 500;
}

/* Cart Dropdown */
.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 350px;
    max-height: 400px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.cart-dropdown.active {
    display: block;
}

.cart-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--light-gray);
}

.cart-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--secondary-color);
}

.cart-items {
    max-height: 250px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    gap: 15px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    background-color: #f8f8f8;
    border-radius: 5px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-color);
}

.cart-item-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.quantity-btn {
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    width: 25px;
    height: 25px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-color);
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

.cart-item-remove {
    color: #e74c3c;
    cursor: pointer;
    font-size: 16px;
}

.cart-item-remove:hover {
    color: #c0392b;
}

.cart-empty {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.cart-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.cart-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--light-gray);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.checkout-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #0056b3;
}

/* Secondary Navigation */
.secondary-nav {
    background-color: var(--secondary-color);
    padding: 15px 0;
}

.secondary-nav .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.secondary-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.secondary-nav a:hover,
.secondary-nav a.active {
    color: #ffc107;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.hero-section h1 {
    font-size: clamp(32px, 6vw, 64px);
    margin-bottom: 20px;
}

.hero-section p {
    font-size: clamp(16px, 3.5vw, 20px);
    margin-bottom: 30px;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* Hero Slider Styles */

.hero-slider {
    position: relative;
    overflow: visible;
}

.hero-slider .slider {
    position: relative;
}

.hero-slider .slider {
    position: relative;
    height: clamp(360px, 60vh, 520px);
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 700ms ease, transform 700ms ease;
    pointer-events: none;
}

.hero-slider .slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-slider .slide.prev {
    opacity: 0;
    transform: scale(0.96);
}

.hero-slider .slide .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Make TradePageEats slide background span full width of the viewport */
.hero-slider .slide[data-index="1"] {
    /* Use the same red as the centered eats box so there's no visible square */
    background-color: #e53935;
}


/* TradePageEats centered box */
.eats-box {
    width: 60%;
    max-width: 900px;
    min-width: 0;
    margin: 0 auto;
    /* Use flex column and center content so the title and button are perfectly centered */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* keep spacing but allow responsive shrink */
    background-color: transparent;
    color: white;
    padding: 110px 80px;
    border-radius: 10px;
    box-shadow: none;
}

.eats-title {
    font-size: 64px;
    margin-bottom: 18px;
    font-weight: 800;
    color: white;
}

.eats-sub {
    font-size: 18px;
    margin-bottom: 28px;
    color: #ffecec;
}

.eats-btn {
    /* Match the main hero button sizing and style */
    background-color: white;
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 5px;
    border: none;
    font-weight: 700;
    box-shadow: none;
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-controls button {
    pointer-events: all;
    background: rgba(0,0,0,0.45);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button#prevSlide { position: absolute; left: 24px; }
.slider-controls button#nextSlide { position: absolute; right: 24px; }

@media (max-width: 768px) {
    .eats-title {
        font-size: 32px;
    }
    .slide-eats {
        padding: 80px 0;
    }

    .eats-box {
        width: 90%;
        min-width: 0;
        padding: 60px 24px;
    }

    .hero-section h1 {
        font-size: 32px;
    }
}

/* Help Bot Mascot */
.help-bot-mascot {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    cursor: pointer;
    z-index: 10;
}

/* TradePageEats page styles */
.eats-search input { border-radius: 30px; padding-left: 18px; }
.category-scroll {
    display:flex; gap:12px; overflow-x:auto; padding:18px 0; margin: 10px 0 20px;
}
.cat-pill {
    background: white; border: 1px solid var(--border-color); padding:8px 14px; border-radius:20px; cursor:pointer; white-space:nowrap;
}
.cat-pill.active { background: var(--secondary-color); color: white; border-color: transparent; }
.eats-section-title { font-size: 28px; margin-top: 8px; }
.eats-subhead { color:#666; margin-bottom:16px; }
.eats-list { display:flex; flex-direction:column; gap:20px; }
.eats-item {
    display:flex; align-items:center; justify-content:space-between; background:white; padding:18px; border-radius:12px; border:1px solid var(--border-color);
}
.eats-item-info { flex:1; padding-right:20px; }
.eats-item-info h3 { margin:0 0 8px; font-size:18px; }
.eats-item-info .price { margin-bottom:8px; }
.eats-item-info .price .current { color: #1b8f52; font-weight:700; margin-right:8px; }
.eats-item-info .price .old { color:#999; text-decoration:line-through; }
.eats-item-info .desc { color:#777; font-size:14px; }
.eats-item-image { width:150px; height:110px; border-radius:10px; overflow:hidden; position:relative; flex-shrink:0; }
.eats-item-image img { width:100%; height:100%; object-fit:cover; display:block; }
.add-circle {
    position:absolute; right:10px; bottom:10px; width:36px; height:36px; border-radius:50%; background:white; border:1px solid rgba(0,0,0,0.08); box-shadow:0 6px 12px rgba(0,0,0,0.08); cursor:pointer; font-size:20px; color:var(--secondary-color);
}

@media (max-width: 900px) {
    .eats-item { flex-direction:column; align-items:flex-start; }
    .eats-item-image { width:100%; height:180px; margin-top:12px; }
}

.bot-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: bounce 2s infinite;
    transition: transform 0.3s ease;
}

.bot-icon:hover {
    transform: scale(1.1);
}

.bot-tooltip {
    position: absolute;
    bottom: 90px;
    right: 0;
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.bot-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 5px solid transparent;
    border-top-color: rgba(0,0,0,0.8);
}

.help-bot-mascot:hover .bot-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Products Section */
.featured-products,
.products-main {
    padding: 50px 0;
}

.featured-products h2,
.products-main h2 {
    margin-bottom: 30px;
    font-size: 32px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* Product Card */
.product-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    background-color: #1a1a1a;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--green-tag);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255,255,255,0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.favorite-btn:hover {
    background-color: white;
}

.favorite-btn.active {
    color: #e74c3c;
}

.product-info {
    padding: 15px;
}

.brand-name {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-price small {
    font-size: 16px;
}

.stock-status {
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.add-to-cart-btn {
    width: 100%;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #23272b;
}

.add-to-cart-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Products Page Layout */
.products-page {
    padding: 30px 0;
    background-color: var(--light-gray);
    min-height: calc(100vh - 300px);
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar */
.sidebar {
    background-color: var(--secondary-color);
    color: white;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    color: white;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    transition: color 0.3s;
}

.category-list a:hover,
.category-list a.active {
    color: #ffc107;
}

.category-list a i {
    font-size: 12px;
}

/* New Products Mini */
.new-products-mini {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mini-product {
    display: flex;
    gap: 10px;
    background-color: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 5px;
}

.mini-product img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
}

.mini-product-info {
    flex: 1;
}

.mini-product-name {
    font-size: 12px;
    margin-bottom: 5px;
}

.mini-product-price {
    font-size: 14px;
    font-weight: bold;
    color: #ffc107;
}

/* Products Header */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.sort-options select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ffc107;
}

.powered-by-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-bottom: 10px;
    display: inline-block;
    text-decoration: none;
}

.powered-by-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.powered-by-btn:active {
    transform: translateY(0);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: #ccc;
}

/* Checkout Styles */
.checkout-section {
    padding: 50px 0;
    background-color: var(--light-gray);
    min-height: calc(100vh - 300px);
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.order-summary,
.payment-form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.order-summary h2,
.payment-form h2 {
    margin-bottom: 30px;
    color: var(--secondary-color);
    font-size: 24px;
}

.order-items {
    margin-bottom: 30px;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 15px;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 60px;
    height: 60px;
    background-color: #f8f8f8;
    border-radius: 5px;
    flex-shrink: 0;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.order-item-price {
    color: var(--primary-color);
    font-weight: bold;
}

.order-item-quantity {
    font-size: 14px;
    color: #666;
}

.order-total {
    border-top: 2px solid var(--border-color);
    padding-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
}

.final-total {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 18px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-method input[type="radio"] {
    margin: 0;
}

.payment-method label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.payment-details {
    margin-top: 20px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 5px;
}

.bank-info h4,
.paypal-info h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.bank-info p {
    margin-bottom: 10px;
}

.alert {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.paypal-btn {
    background-color: #0070ba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
}

.paypal-btn:hover {
    background-color: #005ea6;
}

.terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.terms input[type="checkbox"] {
    margin-top: 3px;
}

.terms label {
    font-size: 14px;
    line-height: 1.4;
}

.terms a {
    color: var(--primary-color);
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

.place-order-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.place-order-btn:hover {
    background-color: #0056b3;
}

/* Cart Page Styles */
.cart-page {
    padding: 50px 0;
    background-color: var(--light-gray);
    min-height: calc(100vh - 300px);
}

.cart-page h1 {
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.cart-items-list {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-item-detailed {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    gap: 20px;
}

.cart-item-detailed:last-child {
    border-bottom: none;
}

.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-details h4 {
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.cart-item-details .brand {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.cart-item-details .price {
    font-weight: bold;
    color: var(--primary-color);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-total {
    font-weight: bold;
    color: var(--primary-color);
}

.cart-item-remove button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cart-item-remove button:hover {
    background-color: #c0392b;
}

.cart-summary {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.cart-summary .cart-total {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.cart-summary .cart-total h3 {
    margin: 0;
    color: var(--secondary-color);
}

.checkout-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #0056b3;
}

.continue-shopping-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.continue-shopping-btn:hover {
    background-color: #23272b;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-cart i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #ccc;
}

.empty-cart h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.empty-cart p {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .products-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        top: 0;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

}

@media (max-width: 1024px) {
    .container {
        padding: 0 18px;
    }

    .top-header-left,
    .top-header-right {
        width: 100%;
        justify-content: center;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .search-bar {
        flex: 1 0 100%;
        max-width: 100%;
        order: 3;
    }

    .cart-section {
        width: 100%;
        justify-content: flex-end;
    }

    .hero-section {
        padding: 60px 0;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .top-header .container {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .search-bar {
        order: 2;
    }

    .cart-section {
        justify-content: flex-start;
        order: 3;
        width: 100%;
    }

    .products-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        top: 0;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-item-detailed {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }

    .cart-item-quantity,
    .cart-item-total,
    .cart-item-remove {
        grid-column: span 2;
        justify-self: center;
    }

    .cart-item-quantity {
        margin: 10px 0;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 15px;
    }

    .top-header {
        font-size: 12px;
    }

    .top-header-left a,
    .top-header-right a {
        margin-right: 0;
        font-size: 13px;
    }

    .main-header {
        padding: 15px 0;
    }

    .logo img {
        width: 90px;
        height: 90px;
    }

    .cart-info {
        width: 100%;
        justify-content: center;
    }

    .secondary-nav {
        padding: 12px 0;
    }

    .secondary-nav .container {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 16px;
        justify-content: flex-start;
        scrollbar-width: thin;
    }

    .secondary-nav .container::-webkit-scrollbar {
        height: 4px;
    }

    .secondary-nav .container::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.4);
        border-radius: 4px;
    }

    .secondary-nav a {
        font-size: 13px;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .hero-slider .slider {
        height: auto;
        min-height: 320px;
    }

    .eats-box {
        padding: 40px 20px;
    }

    .slider-controls button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .product-price {
        font-size: 20px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header-content {
        align-items: stretch;
    }

    .cart-info {
        flex-direction: column;
        gap: 4px;
    }

    .hero-slider .slide .container {
        padding: 0 12px;
    }

    .hero-section h1 {
        text-align: center;
    }

    .hero-section p {
        text-align: center;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .featured-products,
    .products-main {
        padding: 35px 0;
    }

    .footer {
        padding: 40px 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Credit Card Modal */
.credit-card-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--secondary-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--secondary-color);
}

.modal-body {
    padding: 20px;
}

.pay-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.pay-btn:hover {
    background-color: #0056b3;
}
