/* ==========================================================================
   AMIGOS STUDIO - CORE STYLING & DESIGN SYSTEM (common.css)
   ========================================================================== */

/* Design Tokens & Accent Color Definitions */
:root {
    --bg-dark: #090a0f;
    --bg-card: rgba(17, 19, 26, 0.75);
    --bg-card-hover: rgba(26, 29, 38, 0.9);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(234, 179, 8, 0.35);
    
    --accent-primary: #eab308; /* Luxury Amber Gold */
    --accent-hover: #ca8a04;
    --accent-glow: rgba(234, 179, 8, 0.25);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --success: #10b981;
    --error: #ef4444;
    --info: #3b82f6;
    
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    
    --whatsapp-color: #25d366;
    --phone-color: #3b82f6;
}

/* 1. Reset & Global Aesthetics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    position: relative;
}

/* Luxury Canvas Ambient Glowing Blobs */
body::before, body::after {
    content: '';
    position: absolute;
    width: 45vw;
    height: 45vw;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.07;
    pointer-events: none;
    z-index: -1;
}
body::before {
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    top: 5%;
    right: -10%;
}
body::after {
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    bottom: 25%;
    left: -10%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

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

button, input, select, textarea {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
    color: inherit;
}

/* Custom UI Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 96px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Glassmorphism Panels */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}
.glass-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--accent-glow);
}

/* Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-primary);
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 12px;
    background: rgba(234, 179, 8, 0.08);
    border-radius: 30px;
    border: 1px solid rgba(234, 179, 8, 0.2);
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    section {
        padding: 64px 0;
    }
}
.section-subtitle {
    color: var(--text-secondary);
    margin-top: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Premium Button Typography & Shadows */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hover) 100%);
    color: #000;
    box-shadow: 0 4px 20px rgba(234, 179, 8, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(234, 179, 8, 0.5);
    background: linear-gradient(135deg, #facc15 0%, var(--accent-primary) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
    background-color: #20ba5a;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    transform: translateY(-2px);
}

.btn-phone {
    background-color: var(--phone-color);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}
.btn-phone:hover {
    background-color: #2563eb;
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.45);
    transform: translateY(-2px);
}

/* 2. Navigation Header Area */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(9, 10, 15, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}
header.scrolled {
    padding: 10px 0;
    background: rgba(9, 10, 15, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition-smooth);
}
header.scrolled .nav-container {
    height: 64px;
}

.logo {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo i {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent-primary);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: var(--transition-smooth);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (min-width: 1025px) {
    .logo {
        flex: 1;
    }
    .nav-menu {
        flex: 0 0 auto;
    }
    .nav-actions {
        flex: 1;
        justify-content: flex-end;
    }
}

/* Searching */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 10px 16px 10px 40px;
    border-radius: 30px;
    width: 240px;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    color: var(--text-primary);
}
.search-input:focus {
    width: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.15);
}
.search-icon {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.nav-btn {
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}
.nav-btn:hover {
    color: var(--accent-primary);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(9, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-glass);
        padding: 30px 24px;
        gap: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    .nav-menu.active {
        display: flex;
    }
    .mobile-toggle {
        display: block;
    }
    .search-box {
        display: none;
    }
}

/* 3. Product Display Card Layouts */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.card-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 125%; /* 4:5 Aspect Ratio */
    background-color: #11131a;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}
.card-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .card-image-wrap img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hover) 100%);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.card-badge.badge-featured {
    background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
    color: #fff;
}
.card-badge.badge-bulk {
    background: linear-gradient(135deg, var(--whatsapp-color) 0%, #15803d 100%);
    color: #fff;
}

.card-wishlist {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(9, 10, 15, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.card-wishlist:hover {
    color: #ef4444;
    transform: scale(1.1);
}

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

.card-category {
    font-size: 0.75rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.2em;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    margin-bottom: 20px;
}

.card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-headings);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #fbbf24;
}
.rating-count {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: 2px;
}

.card-btn {
    width: 100%;
    padding: 12px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.bulk-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.bulk-card-actions .btn {
    padding: 10px;
    font-size: 0.8rem;
    border-radius: 8px;
}

/* Visibility triggers */
.product-grid .product-card.hidden {
    display: none;
}

/* 4. Shared Forms & Inputs */
.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 576px) {
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 14px 18px;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.form-input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.15);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* 5. Shared Footer styling */
footer {
    background: #050608;
    border-top: 1px solid var(--border-glass);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 60px;
}
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}
@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-column h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}
.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background-color: var(--accent-primary);
}

.footer-about p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 12px;
}
.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}
.social-link:hover {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--accent-glow);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-link a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.footer-link a:hover {
    color: var(--accent-primary);
    padding-left: 6px;
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-contact-item {
    display: flex;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    align-items: flex-start;
}
.footer-contact-item i {
    color: var(--accent-primary);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 6. Admin passcode password wall Modal Overlay */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 450px;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}
.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.modal-close:hover {
    color: var(--error);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}
.modal-desc {
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.password-input-group {
    position: relative;
    margin-bottom: 24px;
}
.password-input-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.password-input-group input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    font-size: 1rem;
    color: var(--text-primary);
}
.password-input-group input:focus {
    border-color: var(--accent-primary);
}

/* 7. Toast Alerts Notifications styling */
.toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 350px;
    width: 90%;
}

.toast {
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(17, 19, 26, 0.95);
    border-left: 4px solid var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}
.toast.show {
    transform: translateX(0);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.info { border-left-color: var(--info); }

.toast-icon {
    font-size: 1.2rem;
    margin-top: 2px;
}
.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--error); }
.toast.info .toast-icon { color: var(--info); }

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.toast-msg {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   8. RESPONSIVE ALIGNMENT & STRUCTURAL FIXES (Added for Multi-screen alignment)
   ========================================================================== */

/* Tablet & Mobile header improvements */
@media (max-width: 1024px) {
    .nav-container {
        height: 64px !important;
        padding: 0 16px !important;
    }
    .logo {
        font-size: 1.6rem !important;
    }
}

/* Page Wrappers Clearance & General Spacing under 768px */
@media (max-width: 768px) {
    .about-page-wrapper, .shop-page-wrapper, .bulk-page-wrapper, .contact-page-wrapper {
        padding-top: 100px !important;
        padding-bottom: 64px !important;
    }
}

/* Testimonials, Footer, FAQ, and Grids under 576px */
@media (max-width: 576px) {
    .testimonial-slide {
        padding: 24px 16px !important;
        gap: 16px !important;
    }
    .testimonial-quote {
        font-size: 1.1rem !important;
    }
    .faq-header {
        padding: 16px 20px !important;
    }
    .faq-content {
        padding: 0 20px !important;
    }
    .faq-item.active .faq-content {
        padding: 16px 20px !important;
    }
    .faq-question {
        font-size: 1rem !important;
    }
    .footer-grid {
        gap: 24px !important;
    }
    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
    }
    .contact-info-panel, .contact-form-panel {
        padding: 24px 20px !important;
    }
    .wholesale-callout {
        padding: 24px 20px !important;
        text-align: center !important;
        justify-content: center !important;
    }
    .wholesale-callout div {
        justify-content: center !important;
        width: 100% !important;
    }
    .wholesale-callout .btn {
        width: 100% !important;
    }
}

/* Extra Small Devices (Mobile under 480px) */
@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem !important;
    }
    .logo img {
        height: 24px !important;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
        gap: 16px !important;
    }
    .section-title {
        font-size: 1.6rem !important;
    }
    section {
        padding: 48px 0 !important;
    }
    .section-header {
        margin-bottom: 32px !important;
    }
    .modal-content {
        padding: 24px 20px !important;
    }
}
