/* ============================================
   SIHIPAK STOREFRONT CSS
   ============================================ */

:root {
    --primary: #c44d16;
    --primary-dark: #a83d0c;
    --primary-light: #fbeae1;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    --bg-body: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --bg-dark: #372f2a;
    --bg-darker: #2d2621;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --accent-red: #ef4444;
    --accent-green: #22c55e;
    --accent-yellow: #f59e0b;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    --transition: all 0.2s ease;
    
    --container-width: 1280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background-color: #43332a;
    color: #e2dcd7;
    font-size: 11px;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-item, .top-bar-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-link {
    transition: var(--transition);
}

.top-bar-link:hover {
    color: white;
}

.top-bar-icon {
    width: 12px;
    height: 12px;
    color: var(--primary);
}

.top-bar-divider {
    color: rgba(255,255,255,0.2);
    font-size: 10px;
}

/* ============================================
   MAIN HEADER
   ============================================ */
.main-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.main-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon-wrapper {
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 24px;
    font-weight: 700;
    color: #a83d0c;
    letter-spacing: 1px;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 9px;
    font-weight: 600;
    color: #a83d0c;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    height: 44px;
}

.search-category {
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-right: 1px solid var(--border-color);
    height: 100%;
    cursor: pointer;
    background: var(--bg-gray);
    white-space: nowrap;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 16px;
    font-size: 13px;
    height: 100%;
    outline: none;
}

.search-btn {
    background: var(--primary);
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 0 24px;
    height: 100%;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.header-action-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.action-text {
    display: flex;
    flex-direction: column;
}

.action-top {
    font-size: 11px;
    color: var(--text-muted);
}

.action-bottom {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-icon-wrapper {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.main-nav {
    border-bottom: 1px solid var(--border-color);
    background: white;
}

.main-nav-inner {
    display: flex;
    align-items: center;
    padding-left: 0 !important;
}

.nav-categories-dropdown {
    display: flex;
    align-items: center;
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    min-width: 220px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 24px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 14px 0;
    display: inline-block;
    transition: var(--transition);
}

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

.nav-deals {
    color: var(--accent-red) !important;
    display: flex;
    align-items: center;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--bg-dark);
    color: white;
    margin-top: 60px;
}

/* Newsletter */
.newsletter-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 40px;
}

.newsletter-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.newsletter-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.newsletter-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.newsletter-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.newsletter-right {
    flex-shrink: 0;
    width: 400px;
}

.newsletter-input-group {
    display: flex;
    background: white;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 44px;
}

.newsletter-input {
    flex: 1;
    border: none;
    padding: 0 16px;
    font-size: 13px;
    outline: none;
}

.newsletter-btn {
    background: var(--primary);
    color: white;
    padding: 0 24px;
    font-size: 13px;
    font-weight: 600;
}

/* Footer Links Grid */
.footer-links-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 32px;
    padding-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-about {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
}

.social-links i {
    width: 16px;
    height: 16px;
}

.footer-heading {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    color: white;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.footer-contact i {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Footer Bottom */
.footer-bottom {
    background: var(--bg-darker);
    padding: 16px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

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

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: white;
}

/* Global Trust Bar */
.global-trust-bar {
    background: #fffaf6;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 24px 0;
    margin-top: 30px;
    margin-bottom: 45px;
}
.trust-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.trust-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}
.trust-bar-item i {
    width: 28px;
    height: 28px;
    color: #a83d0c;
    flex-shrink: 0;
}
.trust-bar-text {
    display: flex;
    flex-direction: column;
}
.trust-bar-text h4 {
    font-size: 13px;
    font-weight: 700;
    color: #4a2f1d;
    margin-bottom: 2px;
    line-height: 1.2;
}
.trust-bar-text p {
    font-size: 11px;
    color: #888;
    line-height: 1.3;
    margin: 0;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 1024px) {
    .header-search {
        max-width: 45%;
    }
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    /* Top Bar */
    .top-bar {
        padding: 6px 0;
    }
    .top-bar-left .top-bar-divider,
    .top-bar-left .top-bar-item:not(:first-child) {
        display: none;
    }
    .top-bar-right .top-bar-divider,
    .top-bar-right .top-bar-link:not(:first-child) {
        display: none;
    }

    /* Main Header */
    .main-header {
        padding: 12px 0;
    }
    .main-header-inner {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    .header-search {
        max-width: 100%;
        width: 100%;
        order: 3;
    }
    .logo-link {
        justify-content: center;
    }
    .header-actions {
        justify-content: space-around;
        width: 100%;
        order: 2;
    }
    
    /* Navigation Bar */
    .main-nav-inner {
        flex-direction: column;
        align-items: stretch;
        padding-left: 0 !important;
    }
    .nav-categories-dropdown {
        width: 100%;
        min-width: 100%;
        justify-content: center;
    }
    .nav-links {
        padding: 10px 0;
        gap: 16px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    .nav-links li {
        display: inline-block;
    }
    .nav-links a {
        padding: 8px 0;
    }

    /* Trust Bar */
    .global-trust-bar {
        padding: 20px 0;
        margin-bottom: 30px;
    }
    .trust-bar-inner {
        grid-template-columns: 1fr;
        display: grid;
        gap: 16px;
    }
    .trust-bar-item {
        min-width: 100%;
    }

    /* Footer Newsletter */
    .newsletter-section {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 24px 16px;
    }
    .newsletter-left {
        flex-direction: column;
        gap: 12px;
    }
    .newsletter-right {
        width: 100%;
    }
    .newsletter-input-group {
        width: 100%;
    }
    .newsletter-input {
        width: 100%;
    }

    /* Footer Links */
    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding-bottom: 30px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
    .header-actions .action-text {
        display: none; /* Hide text, show only icons on tiny screens */
    }
    .header-actions {
        gap: 12px;
    }
}
