/* ============================================
   Taze Market - Custom Stylesheet
   Fresh, clean grocery design
   ============================================ */

/* ---------- Base Styles ---------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Navigation ---------- */
.nav-link {
    color: #374151;
    position: relative;
}

.nav-link:hover {
    color: #2D6A4F;
    background-color: #FEFAE0;
}

.nav-active {
    color: #2D6A4F !important;
    background-color: #FEFAE0 !important;
    font-weight: 600 !important;
}

.nav-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: #FFB703;
    border-radius: 3px;
}

/* ---------- Hero Section ---------- */
.hero-gradient {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 40%, #40916C 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 183, 3, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-gradient::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(149, 213, 178, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

/* ---------- Category Cards ---------- */
.category-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: #FFB703;
    box-shadow: 0 20px 40px rgba(45, 106, 79, 0.15);
}

.category-card .category-icon {
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.15) rotate(-5deg);
}

/* ---------- Product Cards ---------- */
.product-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

/* ---------- Deal Cards ---------- */
.deal-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.deal-card:hover {
    transform: scale(1.02);
}

.deal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.deal-card:hover::before {
    left: 100%;
}

.price-old {
    text-decoration: line-through;
    color: #9CA3AF;
    font-size: 0.875rem;
}

.price-new {
    color: #DC2626;
    font-weight: 800;
    font-size: 1.25rem;
}

.discount-badge {
    background: linear-gradient(135deg, #DC2626, #EF4444);
    color: white;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    display: inline-block;
}

/* ---------- Section Decorations ---------- */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #FFB703, #2D6A4F);
    border-radius: 2px;
}

.section-title-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ---------- Leaf Decoration ---------- */
.leaf-decoration {
    position: relative;
}

.leaf-decoration::before {
    content: '\1F33F';
    position: absolute;
    top: -10px;
    right: -25px;
    font-size: 1.5rem;
    opacity: 0.6;
    transform: rotate(45deg);
}

/* ---------- Feature Cards ---------- */
.feature-card {
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.feature-card:hover {
    border-bottom-color: #FFB703;
    transform: translateY(-4px);
}

/* ---------- Info Cards ---------- */
.info-card {
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 8px 24px rgba(45, 106, 79, 0.12);
}

/* ---------- Blog Cards ---------- */
.blog-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.blog-card .blog-image {
    transition: transform 0.4s ease;
}

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

/* ---------- Contact Form ---------- */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-input:focus {
    outline: none;
    border-color: #2D6A4F;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

/* ---------- Delivery Zones ---------- */
.zone-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.zone-card:hover {
    border-left-color: #FFB703;
    background-color: #FEFAE0;
}

/* ---------- Campaign/Deal Styles ---------- */
.campaign-banner {
    background: linear-gradient(135deg, #2D6A4F 0%, #40916C 50%, #FFB703 100%);
    position: relative;
    overflow: hidden;
}

.campaign-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.flyer-card {
    transition: all 0.3s ease;
    position: relative;
}

.flyer-card:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

/* ---------- Timeline ---------- */
.timeline-item {
    position: relative;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #2D6A4F;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -5px;
    top: 6px;
    width: 13px;
    height: 13px;
    background-color: #FFB703;
    border: 3px solid #2D6A4F;
    border-radius: 50%;
}

/* ---------- Map Placeholder ---------- */
.map-placeholder {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border: 2px dashed #2D6A4F;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #2D6A4F;
}

/* ---------- Pulse Animation ---------- */
@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-pulse-slow {
    animation: pulse-slow 2s ease-in-out infinite;
}

/* ---------- Bounce ---------- */
@keyframes bounce-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.animate-bounce-gentle {
    animation: bounce-gentle 2s ease-in-out infinite;
}

/* ---------- Fresh Badge ---------- */
.fresh-badge {
    background: linear-gradient(135deg, #2D6A4F, #40916C);
    color: white;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---------- Stats Counter ---------- */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2D6A4F;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 0.25rem;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
    .stat-number {
        font-size: 1.75rem;
    }

    .hero-gradient::before,
    .hero-gradient::after {
        display: none;
    }
}

/* ---------- Print Styles ---------- */
@media print {
    nav, footer, #back-to-top, .no-print {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

/* ---------- Selection Color ---------- */
::selection {
    background-color: rgba(45, 106, 79, 0.2);
    color: #1B4332;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FEFAE0;
}

::-webkit-scrollbar-thumb {
    background: #2D6A4F;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #40916C;
}


/* ===== Overflow / Tasma Korumasi ===== */
body {
    overflow-x: hidden;
}

/* max-width overflow protection removed - handled by img/video/iframe rule below */

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

p, li, td, th, a, span, h1, h2, h3, h4, h5, h6, label, blockquote {
    overflow-wrap: break-word;
    word-break: break-word;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

pre, code {
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
