/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #666666;
    --text-dark: #2C2C2C;
    --text-light: #666666;
    --bg-light: #FAF9F6;
    --bg-white: #FFFFFF;
    --border-color: #E5E5E5;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #F59E0B;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: #FFFFFF;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Container ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* ===== Header ===== */
.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo {
    position: relative;
}

.logo h1 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
    letter-spacing: 2px;
    font-family: 'Arial Black', 'Arial Bold', sans-serif;
    position: relative;
    text-transform: uppercase;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.logo .tagline {
    font-size: 10px;
    color: var(--text-light);
    font-style: italic;
    margin-top: 2px;
    letter-spacing: 1px;
    font-weight: 400;
}

.logo a {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.02);
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 500px;
}

.search-bar form {
    display: flex;
    gap: 0;
    position: relative;
}

.search-bar input {
    flex: 1;
    padding: 12px 40px 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px 0 0 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: var(--primary-color);
}

.search-clear-btn {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: all 0.3s;
}

.search-clear-btn:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.search-clear-btn.visible {
    display: flex;
}

.search-bar button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: #6D28D9;
}

/* Navigation */
.navigation {
    display: flex;
    gap: 30px;
}

.navigation a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s;
    white-space: nowrap;
}

.navigation a:hover {
    color: var(--primary-color);
}

/* ===== Top Banner ===== */
.top-banner {
    width: 100%;
    background: linear-gradient(135deg, #FFE5E5 0%, #FFD4E5 50%, #FFC9E0 100%);
    padding: 0;
    overflow: hidden;
}

.banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px  0px 0px;
    min-height: 240px;
}

.banner-text {
    flex: 1;
    max-width: 600px;
}

.banner-text h2 {
    font-size: 48px;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.banner-text p {
    font-size: 16px;
    color: #4A4A4A;
    margin-bottom: 30px;
    line-height: 1.6;
}

.banner-shop-btn {
    display: inline-block;
    background-color: #000000;
    color: white;
    padding: 16px 40px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.banner-shop-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.banner-image {
    flex-shrink: 0;
    height: 320px;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== Message Bar ===== */
.message-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.message-bar p {
    margin: 0;
    font-size: 14px;
    display: inline-block;
    padding: 0 50px;
    animation: scroll-left 20s linear infinite;
}

.message-bar p:first-child {
    animation-delay: 0s;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.message-bar:hover p {
    animation-play-state: paused;
}

/* ===== Categories Section ===== */
.categories-section {
    padding: 30px 0;
    background-color: #FFFFFF;
    width: 100%;
}

.categories-section .container {
    max-width: 100%;
    padding: 0;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-dark);
    padding: 0 30px;
}

.categories-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 0 30px 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.categories-scroll::-webkit-scrollbar {
    height: 6px;
}

.categories-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.categories-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.category-card {
    min-width: 350px;
    max-width: 350px;
    height: 320px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.category-card:nth-child(1) {
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
}

.category-card:nth-child(2) {
    background: linear-gradient(135deg, #EC4899 0%, #F472B6 100%);
}

.category-card:nth-child(3) {
    background: linear-gradient(135deg, #F59E0B 0%, #FCD34D 100%);
}

.category-card:nth-child(4) {
    background: linear-gradient(135deg, #10B981 0%, #6EE7B7 100%);
}

.category-card:nth-child(5) {
    background: linear-gradient(135deg, #3B82F6 0%, #93C5FD 100%);
}

.category-card:nth-child(6) {
    background: linear-gradient(135deg, #EF4444 0%, #FCA5A5 100%);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.category-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-info {
    padding: 18px 20px 20px;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-info h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1F2937;
}

.category-info p {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 12px;
    line-height: 1.4;
}

.shop-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    background-color: transparent;
    color: #000000;
    border: 1.5px solid #000000;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.2s;
    letter-spacing: 0.3px;
    white-space: nowrap;
    align-self: flex-start;
}

.shop-now-btn:hover {
    background-color: #000000;
    color: white;
}

.shop-now-btn::after {
    content: "›";
    font-size: 18px;
    line-height: 1;
}

/* ===== Products Section ===== */
.products-section {
    padding: 10px 0;
    background-color: #FFFFFF;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.view-more-link {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s;
}

.view-more-link:hover {
    color: #6D28D9;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border: 1px solid #F2F2F2;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #E0E0E0;
}

.product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.badge-limited {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #EF4444;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    z-index: 10;
}

.product-info {
    padding: 16px;
}

.product-category {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.product-title {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.4;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-sku {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-stock {
    display: none; /* Hidden as per requirement */
}

.view-more-container {
    text-align: center;
    margin-top: 40px;
}

.view-more-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.view-more-btn:hover {
    background-color: #6D28D9;
}

/* ===== Products Page ===== */
.products-page {
    padding: 40px 0;
    min-height: 70vh;
}

.products-layout {
    display: flex;
    gap: 30px;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    transition: background-color 0.3s;
    font-size: 14px;
}

.category-item:hover {
    background-color: var(--bg-light);
}

.category-item.active {
    background-color: var(--primary-color);
    color: white;
}

.category-item .count {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.category-item.active .count {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Price Filter */
.price-filter {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.price-range-slider {
    margin-bottom: 20px;
}

.price-range-slider input[type="range"] {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.price-range-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.price-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-input-group {
    flex: 1;
}

.price-input-group label {
    display: block;
    font-size: 11px;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.price-input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

.price-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.price-separator {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 20px;
}

.price-filter-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.price-filter-btn:hover {
    background: var(--accent-color);
}

.price-clear-btn {
    display: block;
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.price-clear-btn:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.products-main {
    flex: 1;
}

.products-header {
    margin-bottom: 30px;
}

.products-header h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

.products-count {
    font-size: 14px;
    color: var(--text-light);
}

.products-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn,
.pagination-number,
.pagination-current {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.pagination-btn {
    background-color: var(--primary-color);
    color: white;
    transition: background-color 0.3s;
}

.pagination-btn:hover {
    background-color: #6D28D9;
}

.pagination-number {
    background-color: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s;
}

.pagination-number:hover {
    background-color: var(--bg-light);
}

.pagination-current {
    background-color: var(--primary-color);
    color: white;
}

.pagination-ellipsis {
    padding: 10px 5px;
    color: var(--text-light);
}

.no-products {
    text-align: center;
    padding: 80px 20px;
}

.no-products h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.no-products p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 25px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #6D28D9;
}

/* ===== Product Detail Page ===== */
.product-detail-page {
    padding: 40px 0;
    min-height: 70vh;
}

.back-button-container {
    margin-bottom: 30px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s;
}

.back-button:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-detail-images {
    position: sticky;
    top: 100px;
    align-self: start;
}

.main-image {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.product-badge-draft,
.product-badge-sold,
.product-badge-limited {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.product-badge-draft {
    background-color: var(--text-light);
}

.product-badge-sold {
    background-color: var(--danger-color);
}

.product-badge-limited {
    background-color: var(--warning-color);
}

.thumbnail-gallery {
    display: flex;
    gap: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.product-detail-info {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-breadcrumb a {
    color: var(--text-light);
    transition: color 0.3s;
}

.product-breadcrumb a:hover {
    color: var(--primary-color);
}

.product-detail-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.product-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.product-sku-detail,
.product-category-detail {
    font-size: 13px;
    padding: 6px 15px;
    background-color: var(--bg-light);
    border-radius: 15px;
    color: var(--text-light);
}

.product-detail-price {
    margin-bottom: 25px;
}

.price-main {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-detail-stock {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.stock-available,
.stock-unavailable {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.stock-available {
    color: var(--success-color);
}

.stock-unavailable {
    color: var(--danger-color);
}

.qty-sold {
    font-size: 13px;
    color: var(--text-light);
}

.product-detail-description {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.product-detail-description h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-detail-description p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.product-detail-description ul {
    list-style: none;
    padding: 0;
}

.product-detail-description ul li {
    padding: 8px 0;
    color: var(--text-light);
    font-size: 14px;
}

.product-detail-description ul li::before {
    content: "✓ ";
    color: var(--success-color);
    font-weight: 700;
    margin-right: 8px;
}

.product-detail-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-add-to-cart,
.btn-whatsapp,
.btn-disabled {
    flex: 1;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-to-cart {
    background-color: var(--primary-color);
    color: white;
}

.btn-add-to-cart:hover {
    background-color: #6D28D9;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #1da851;
}

.btn-disabled {
    background-color: var(--border-color);
    color: var(--text-light);
    cursor: not-allowed;
}

.product-additional-info {
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-dark);
}

.info-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.related-products-section {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.related-products-section h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

.products-grid-related {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media (max-width: 992px) {
    .products-grid-related {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .related-products-section {
        margin-top: 50px;
        padding-top: 30px;
    }
    
    .related-products-section h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .products-grid-related {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* ===== Footer ===== */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
}

.footer-section a {
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .products-grid-large {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .navigation {
        order: 3;
        width: 100%;
        justify-content: center;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .sidebar-content {
        position: static;
    }
    
    .category-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-detail-images {
        position: static;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .products-grid-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .section-title {
        font-size: 24px;
        padding: 0 20px;
    }
    
    .categories-scroll {
        padding: 0 20px 20px;
        gap: 15px;
    }
    
    .category-card {
        min-width: 300px;
        max-width: 300px;
        height: 300px;
    }
    
    .category-image {
        height: 140px;
    }
    
    .banner-content {
        padding: 40px 30px;
        gap: 40px;
    }
    
    .banner-text h2 {
        font-size: 36px;
    }
    
    .product-detail-actions {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 10px 15px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .search-bar {
        max-width: 100%;
    }
    
    .navigation {
        gap: 15px;
        font-size: 13px;
    }
    
    .banner-content {
        flex-direction: column;
        padding: 20px 15px;
        gap: 20px;
        text-align: center;
        min-height: auto;
    }
    
    .banner-text {
        max-width: 100%;
    }
    
    .banner-text h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .banner-text p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .banner-shop-btn {
        padding: 12px 30px;
        font-size: 13px;
    }
    
    .banner-image {
        width: 100%;
        max-width: 280px;
        height: 140px;
    }
    
    .message-bar {
        padding: 10px 15px;
    }
    
    .message-bar p {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 20px;
        padding: 0 15px;
        margin-bottom: 20px;
    }
    
    .categories-scroll {
        padding: 0 15px 15px;
        gap: 12px;
    }
    
    .category-card {
        min-width: 280px;
        max-width: 280px;
        height: 320px;
    }
    
    .category-image {
        height: 150px;
    }
    
    .category-info {
        padding: 15px;
    }
    
    .category-info h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .category-info p {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .shop-now-btn {
        padding: 7px 18px;
        font-size: 10px;
    }
    
    .products-grid,
    .products-grid-large {
        grid-template-columns: 1fr;
    }
    
    .main-image {
        height: 400px;
    }
    
    .product-detail-info {
        padding: 25px;
    }
    
    .product-detail-title {
        font-size: 28px;
    }
    
    .price-main {
        font-size: 32px;
    }
}

/* ===========================
   Floating WhatsApp Button
   =========================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    display: block;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float svg {
        width: 55px;
        height: 55px;
    }
}

/* ===========================
   Image Zoom Functionality
   =========================== */
.main-image {
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
}

.zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.zoom-hint::before {
    content: '🔍';
}

.main-image:hover .zoom-hint {
    opacity: 1;
}

/* Zoom Modal */
.zoom-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.98);
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.zoom-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.zoom-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.1s ease-out;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    position: relative;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.zoom-close {
    position: fixed;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 100001;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.zoom-close:hover,
.zoom-close:focus {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.zoom-caption {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: #ccc;
    padding: 20px;
    font-size: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 100001;
}

/* Zoom controls hint */
.zoom-modal::after {
    content: '🖱️ Scroll to zoom • Click to zoom in/out • Drag to pan';
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 100001;
    opacity: 0;
    animation: fadeInOut 4s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .zoom-hint {
        font-size: 11px;
        padding: 6px 12px;
        bottom: 5px;
        right: 5px;
    }
    
    .zoom-modal-content {
        max-width: 100%;
        max-height: 90vh;
    }
    
    .zoom-close {
        top: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
    
    .zoom-caption {
        font-size: 14px;
        padding: 15px;
    }
    
    .zoom-modal::after {
        content: '👆 Double tap to zoom • Pinch to zoom • Drag to pan';
        font-size: 11px;
        padding: 8px 16px;
    }
}

@media (max-width: 576px) {
    .zoom-close {
        width: 45px;
        height: 45px;
        font-size: 25px;
        top: 5px;
        right: 5px;
    }
}
