/* ============================================
   AG Consumer Card - Frontend Styles
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --primary-dark: #020617;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #d97706;
    --secondary: #14b8a6;
    --secondary-light: #2dd4bf;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --danger: #ef4444;
    --success: #22c55e;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.3);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--gray-700);
    background: var(--gray-50);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul, ol {
    list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

/* ---------- Utility ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Navbar ---------- */
.navbar {
    background: var(--primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
}

.navbar-brand .brand-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.navbar-brand .brand-tagline {
    font-size: 0.7rem;
    color: var(--gray-400);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-links a {
    color: var(--gray-300);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--accent);
    background: rgba(245, 158, 11, 0.1);
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--accent);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* ---------- Hero Banner ---------- */
.hero-banner {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1367 / 340;
    overflow: hidden;
    background: var(--primary-dark);
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Hero Slider ---------- */
.hero-slider {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1376 / 768;
    overflow: hidden;
    background: var(--primary-dark);
}

.slider-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    width: 33.3333%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

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

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.3) 100%);
    display: flex;
    align-items: center;
    padding-left: 8%;
}

.slide-content {
    max-width: 550px;
    animation: slideIn 0.8s ease-out;
}

.slide-content h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.15;
}

.slide-content h1 span {
    color: var(--accent);
}

.slide-content p {
    color: var(--gray-300);
    font-size: 1.05rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.slide-content .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--primary);
    padding: 12px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.slide-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Section Title ---------- */
.section-header {
    text-align: center;
    padding: 50px 0 30px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    border-radius: 2px;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1rem;
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Category Filter ---------- */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(245, 158, 11, 0.05);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--primary);
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    font-weight: 600;
}

/* ---------- Items Grid ---------- */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    padding: 0 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- Item Card ---------- */
.item-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
}

.item-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(245, 158, 11, 0.2);
}

.item-card-header-band {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    height: 100px;
    width: 100%;
    position: relative;
}

.item-card-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -60px;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    height: 120px;
}

.item-card-square-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 12px;
    border: 3px solid var(--white);
    background: var(--white);
    padding: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.item-card:hover .item-card-square-logo {
    transform: scale(1.06);
}

.item-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 12px 24px 24px;
}

.item-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 6px 0;
    line-height: 1.35;
    font-family: var(--font-heading);
    text-align: center;
}

.item-card-category-badge {
    display: inline-block;
    background: rgba(20, 184, 166, 0.1);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: center;
}

.item-card-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.item-info-row .info-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.item-info-row .info-icon.address-icon {
    background: rgba(20, 184, 166, 0.1);
    color: var(--primary);
}

.item-info-row .info-icon.discount-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

.item-info-row .info-text {
    display: flex;
    flex-direction: column;
}

.item-info-row .info-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--gray-400);
    font-weight: 600;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.item-info-row .info-value {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.45;
}

.item-info-row .info-value.discount-value {
    font-weight: 700;
    color: var(--accent-dark);
    font-size: 0.95rem;
}
@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(245, 158, 11, 0.6); }
}

/* ---------- Stats Section ---------- */
.stats-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 50px 0;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stat-card {
    text-align: center;
    padding: 25px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 6px;
}

.stat-label {
    color: var(--gray-400);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--primary-dark);
    color: var(--gray-400);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-col h4 {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.footer-brand .footer-brand-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
}

.footer-contact-item .contact-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.footer-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
    height: 220px;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

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

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--gray-500);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- No Items ---------- */
.no-items {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.no-items .no-items-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.no-items h3 {
    color: var(--gray-400);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.no-items p {
    color: var(--gray-400);
    font-size: 0.95rem;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--primary);
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* ---------- Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .slide-content h1 { font-size: 2rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .items-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

@media (max-width: 768px) {
    .navbar .container { height: 60px; }
    .navbar-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }
    .navbar-links.open { display: flex; }
    .mobile-menu-btn { display: block; }
    .slide-content h1 { font-size: 1.6rem; }
    .slide-content p { font-size: 0.9rem; }
    .slider-arrow { display: none; }
    .section-header h2 { font-size: 1.6rem; }
    .items-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stat-card { padding: 18px; }
    .stat-number { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .slide-content h1 { font-size: 1.3rem; }
    .slide-content p { display: none; }
    .slide-content .btn-primary { padding: 10px 24px; font-size: 0.85rem; }
    .navbar-brand .brand-name { font-size: 1.1rem; }
    .filter-btn { padding: 8px 16px; font-size: 0.8rem; }
}
