/* IPACK.LK Main Stylesheet
   Premium Apple & Smartphone Accessories E-commerce Theme */

:root {
    --primary: #000000;
    --secondary: #FFFFFF;
    --accent: #007AFF;
    --accent-hover: #0056b3;
    --success: #25D366;
    --success-hover: #20b855;
    --bg-light: #F0F0F5;
    --bg-dark: #121212;
    --bg-dark-card: #1c1c1e;
    --text: #1d1d1f;
    --text-muted: #86868b;
    --border: rgba(0,0,0,0.08);
    --shadow: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --radius: 12px;
    --radius-lg: 22px;
    --radius-pill: 50px;
    --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --glass-bg: rgba(255,255,255,0.75);
    --glass-border: rgba(255,255,255,0.3);
    --glass-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

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

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

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Glassmorphism Card Utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.glass-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(135deg, #1c1c1e 0%, #000000 100%);
    color: var(--secondary);
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 1030;
    position: relative;
}
.announcement-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}
.announcement-text {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}
.announcement-marquee {
    display: inline-block;
    animation: marquee 25s linear infinite;
    padding-left: 100%;
}
.announcement-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}
.announcement-close:hover {
    color: var(--secondary);
}

/* Sticky Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    padding: 8px 0;
}
.navbar.scrolled {
    background: #ffffff;
    box-shadow: var(--shadow);
    padding: 4px 0;
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-icon i {
    color: var(--primary);
    font-size: 1.6rem;
}
.logo-dot {
    color: var(--accent);
}
/* ── New Image Logo ── */
.logo-img-wrap {
    display: flex;
    align-items: center;
    padding: 0;
}
.site-logo-img {
    height: 130px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    transition: transform 0.25s ease, filter 0.25s ease;
    display: block;
}
.site-logo-img:hover {
    transform: scale(1.04);
    filter: brightness(1.1);
}
.logo-fallback {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary);
}
/* Scrolled state — slightly smaller logo */
.navbar.scrolled .site-logo-img {
    height: 100px;
}
/* Footer logo — slightly bigger, brightened to pop on dark bg */
.footer-logo-img {
    height: 130px;
}
.footer-logo-img:hover {
    opacity: 0.85;
}

.nav-link {
    font-weight: 500;
    color: var(--primary) !important;
    padding: 8px 16px !important;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
}
.nav-link:hover, .nav-link.active {
    color: var(--accent) !important;
    background: rgba(0, 122, 255, 0.05);
}

/* Mega Menu */
.mega-dropdown {
    position: static !important;
}
.mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 30px 0;
    margin-top: 1px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.mega-menu-col {
    border-right: 1px solid var(--border);
    padding: 0 25px;
}
.mega-menu-col:last-child {
    border-right: none;
}
.mega-menu-title {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.mega-menu-title i {
    color: var(--accent);
    width: 20px;
}
.mega-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mega-menu-links li {
    margin-bottom: 10px;
}
.mega-menu-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
}
.mega-menu-links a:hover {
    color: var(--accent);
    transform: translateX(4px);
}
.mega-menu-links .view-all a {
    color: var(--accent);
    font-weight: 600;
}
.mega-menu-bottom {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.promo-badge {
    background: #ff3b30;
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    margin-right: 10px;
}

/* Category Icons & Dropdowns */
.dropdown-menu-categories {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: 15px;
}
.dropdown-menu-categories li {
    margin-bottom: 5px;
}
.dropdown-menu-categories li:last-child {
    margin-bottom: 0;
}
.dropdown-item {
    font-weight: 500;
    border-radius: var(--radius);
    padding: 8px 16px;
    transition: var(--transition);
}
.dropdown-item:hover {
    background: rgba(0, 122, 255, 0.05);
    color: var(--accent);
}

/* Shop by iPhone Model Dropdown */
.dropdown-menu-models {
    width: 500px;
    padding: 20px;
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
}
.model-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.model-item {
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-light);
}
.model-item:hover {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
}

/* Nav Icons and CTA */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.nav-icon-link {
    position: relative;
    color: var(--primary);
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
    transition: var(--transition);
}
.nav-icon-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}
.nav-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--success);
    color: var(--secondary) !important;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}
.nav-whatsapp-btn:hover {
    background: var(--success-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* Search Box functionality */
.nav-search {
    position: relative;
}
.nav-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    transition: var(--transition);
}
.nav-search-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}
.nav-search-form {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    transform-origin: right center;
    width: 320px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    padding: 2px 15px;
    box-shadow: var(--shadow);
    z-index: 100;
    opacity: 0;
    transition: var(--transition);
}
.nav-search-form.active {
    transform: translateY(-50%) scaleX(1);
    opacity: 1;
}
.nav-search-form input {
    border: none;
    outline: none;
    box-shadow: none !important;
    background: none;
    padding: 8px 0;
}
.nav-search-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    padding: 10px;
}

/* Page Loader */
.page-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    animation: autoHideLoader 0.5s ease 3s forwards;
}
.page-loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}
@keyframes autoHideLoader {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}
.loader-content {
    text-align: center;
}
.loader-spinner-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}
.loader-apple-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    color: var(--primary);
}
.loader-ring {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(0, 122, 255, 0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.loader-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.loader-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Hero Slider */
.hero-slider-section {
    position: relative;
    width: 100%;
    background: #000000;
    color: var(--secondary);
    overflow: hidden;
}
.swiper-hero {
    height: 680px;
}
.slide-item {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 60px 0;
}
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.30) 60%, rgba(0,0,0,0.05) 100%);
    z-index: 1;
}
.slide-content-wrap {
    position: relative;
    z-index: 2;
    max-width: 650px;
}
.slide-subtitle {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 18px;
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    text-shadow: 0 0 20px rgba(0,122,255,0.6);
}
.slide-title {
    font-size: 4.8rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.0;
    margin-bottom: 22px;
    letter-spacing: -2.5px;
    text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.slide-title em {
    font-style: normal;
    color: var(--accent);
    text-shadow: 0 0 40px rgba(0,122,255,0.5);
}
.slide-desc {
    font-size: 1.15rem;
    font-weight: 400;
    color: rgba(255,255,255,0.78);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 480px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Buttons */
.btn {
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-accent {
    background: var(--accent);
    color: var(--secondary);
    border: none;
}
.btn-accent:hover {
    background: var(--accent-hover);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}
.btn-whatsapp {
    background: var(--success);
    color: var(--secondary);
    border: none;
}
.btn-whatsapp:hover {
    background: var(--success-hover);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}
.btn-outline-dark {
    border: 2px solid var(--primary);
    background: none;
    color: var(--primary);
}
.btn-outline-dark:hover {
    background: var(--primary);
    color: var(--secondary);
}
.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.6);
    background: none;
    color: var(--secondary);
}
.btn-outline-light:hover {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
}

/* Section Padding */
.section-padding {
    padding: 70px 0;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-subtitle {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 10px;
    display: block;
}
.section-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}
.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: var(--radius-pill);
}

/* Category Grid list */
.category-card {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: block;
    height: 100%;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.category-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(0, 122, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--accent);
    transition: var(--transition);
}
.category-card:hover .category-icon-wrapper {
    background: var(--accent);
    color: var(--secondary);
}
.category-name {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}
.category-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* iPhone Model grid page/section */
.model-card {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.model-card:hover {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
    transform: translateY(-3px);
}
.model-card i {
    font-size: 1.1rem;
}

/* Product Card - Premium styling */
.product-card {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.product-badge-container {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 5;
}
.product-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
}
.badge-discount {
    background: #ff3b30;
    color: var(--secondary);
}
.badge-new {
    background: var(--accent);
    color: var(--secondary);
}
.badge-bestseller {
    background: #ff9500;
    color: var(--secondary);
}
.wishlist-btn-wrap {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
}
.wishlist-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    color: var(--text-muted);
    transition: var(--transition);
}
.wishlist-toggle:hover {
    background: #ffffff;
    color: #ff2d55;
    transform: scale(1.1);
}
.wishlist-toggle.active {
    color: #ff2d55;
}
.product-image-container {
    padding: 20px;
    background: #fbfbfd;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image-container img {
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.15, 1, 0.3, 1);
}
.product-card:hover .product-image-container img {
    transform: scale(1.08);
}
.quick-view-btn {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--secondary);
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 4;
    opacity: 0;
}
.product-card:hover .quick-view-btn {
    bottom: 15px;
    opacity: 1;
}
.product-details-wrap {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-brand {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 5px;
}
.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}
.product-title a {
    color: var(--primary);
}
.product-title a:hover {
    color: var(--accent);
}
.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: #ffcc00;
}
.product-rating span {
    color: var(--text-muted);
    font-size: 0.75rem;
}
.product-price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}
.product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}
.product-old-price {
    font-size: 0.95rem;
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Flash Deals Section */
.flash-deal-section {
    background: linear-gradient(135deg, #000000 0%, #1c1c1e 100%);
    color: var(--secondary);
    padding: 80px 0;
}
.flash-deal-title {
    color: var(--secondary);
}
.flash-countdown {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}
.countdown-block {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    width: 70px;
    height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.countdown-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}
.countdown-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Brand Grid */
.brand-carousel-section {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}
.brand-item img {
    max-height: 45px;
    filter: grayscale(1);
    opacity: 0.5;
    transition: var(--transition);
}
.brand-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Reviews Carousel Section */
.reviews-section {
    background: #f5f5f7;
    padding: 80px 0;
}
.review-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    height: 100%;
}
.review-stars {
    color: #ffcc00;
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.review-text {
    font-style: italic;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.review-user {
    display: flex;
    align-items: center;
    gap: 15px;
}
.user-avatar {
    width: 45px;
    height: 45px;
    background: var(--accent);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.user-info h6 {
    margin-bottom: 2px;
    font-size: 0.95rem;
}
.user-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Instagram Showcase */
.instagram-section {
    padding: 80px 0;
}
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}
.instagram-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
}
.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    color: var(--secondary);
    font-size: 1.5rem;
    transition: var(--transition);
}
.instagram-item:hover img {
    transform: scale(1.1);
}
.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #1c1c1e 0%, #000000 100%);
    color: var(--secondary);
    padding: 80px 0;
    border-radius: var(--radius-lg);
    margin-bottom: -50px;
    position: relative;
    z-index: 10;
}
.newsletter-title {
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Footer Section */
.footer-section {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding-top: 120px;
}
.footer-top {
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-title {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 700;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
}
.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(4px);
}
.footer-social-links {
    display: flex;
    gap: 10px;
}
.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}
.social-link:hover {
    background: var(--accent);
    color: var(--secondary);
}
.footer-bottom {
    padding: 30px 0;
    font-size: 0.85rem;
}
.policy-link {
    color: rgba(255,255,255,0.5);
}
.policy-link:hover {
    color: var(--secondary);
}

/* Floating WhatsApp Button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--success);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}
.whatsapp-float-btn:hover {
    background-color: var(--success-hover);
    color: #ffffff;
    transform: scale(1.1);
}
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: #333333;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.whatsapp-float-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 105px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top-btn:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

/* Product Detail Page - Premium displays */
.product-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.product-main-image-wrap {
    background: #fbfbfd;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
}
.product-main-image-wrap img {
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.product-main-image-wrap:hover img {
    transform: scale(1.05);
}
.product-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.thumbnail-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    background: #fbfbfd;
    cursor: pointer;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thumbnail-item.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}
.thumbnail-item img {
    max-height: 100%;
    object-fit: contain;
}

/* Variant Selection */
.variant-option-group {
    margin-bottom: 25px;
}
.variant-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}
.color-options-wrap {
    display: flex;
    gap: 12px;
}
.color-circle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px var(--border);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.color-circle-btn:hover {
    transform: scale(1.1);
}
.color-circle-btn.selected {
    box-shadow: 0 0 0 2px var(--accent);
}
.model-badges-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.model-badge-btn {
    border: 1px solid var(--border);
    background: #ffffff;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
}
.model-badge-btn.selected {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
}
.quantity-selection-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}
.quantity-input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    overflow: hidden;
    background: #ffffff;
    width: 120px;
}
.qty-btn {
    border: none;
    background: none;
    width: 35px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
}
.qty-input {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 700;
    outline: none;
}

/* Tabs & Specs */
.nav-tabs-custom {
    border-bottom: 2px solid var(--border);
    margin-bottom: 30px;
    gap: 30px;
}
.nav-tabs-custom .nav-link {
    border: none;
    background: none !important;
    border-radius: 0;
    padding: 12px 0 !important;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted) !important;
    position: relative;
}
.nav-tabs-custom .nav-link.active {
    color: var(--primary) !important;
}
.nav-tabs-custom .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    border-radius: var(--radius-pill);
}
.specs-table {
    width: 100%;
}
.specs-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
}
.specs-label {
    font-weight: 700;
    color: var(--primary);
    width: 250px;
}
.specs-value {
    color: var(--text);
}

/* Shop Sidebar Filters */
.filter-sidebar {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
}
.filter-widget {
    margin-bottom: 30px;
}
.filter-widget:last-child {
    margin-bottom: 0;
}
.filter-title {
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
}
.filter-list li {
    margin-bottom: 10px;
}
.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    cursor: pointer;
}
.filter-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* FAQ Accordion custom styles */
.faq-accordion .accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg) !important;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #ffffff;
}
.faq-accordion .accordion-button {
    font-weight: 700;
    padding: 20px 25px;
    font-size: 1.05rem;
    color: var(--primary);
    background: none !important;
    box-shadow: none !important;
}
.faq-accordion .accordion-button::after {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f078';
    background: none;
    transform: rotate(0);
    transition: var(--transition);
}
.faq-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}
.faq-accordion .accordion-body {
    padding: 25px;
    color: var(--text);
    border-top: 1px solid var(--border);
    line-height: 1.7;
}

/* Contact information cards */
.contact-info-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    height: 100%;
}
.contact-icon-box {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.05);
    color: var(--accent);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.contact-info-card h5 {
    margin-bottom: 10px;
}

/* Google Map styling */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* Wishlist Item Table styling */
.wishlist-table-container {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.wishlist-table {
    width: 100%;
    border-collapse: collapse;
}
.wishlist-table th {
    background: #fbfbfd;
    padding: 15px 20px;
    text-align: left;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}
.wishlist-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.wishlist-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.wishlist-thumb {
    width: 70px;
    height: 70px;
    background: #fbfbfd;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 5px;
}
.wishlist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.wishlist-title {
    font-weight: 700;
    color: var(--primary);
}
.wishlist-remove-btn {
    border: none;
    background: none;
    color: #ff3b30;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}
.wishlist-remove-btn:hover {
    transform: scale(1.1);
}

/* ── Category Cards v2 (Homepage) ─────────────────────────────────────────── */
.category-card-v2 {
    padding: 20px 12px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--border);
    transition: var(--transition);
    color: var(--text);
}
.category-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    color: var(--text);
}
.cat-icon-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    transition: var(--transition);
}
.category-card-v2:hover .cat-icon-ring {
    transform: scale(1.1);
}
.cat-v2-name {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary);
}
.cat-v2-link {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
}

/* ── Model Pills ───────────────────────────────────────────────────────────── */
.model-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    background: #fff;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}
.model-pill:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ── Brand Badge Pills ─────────────────────────────────────────────────────── */
.brand-badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    background: #fff;
    letter-spacing: 0.5px;
    transition: var(--transition);
}
.brand-badge-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 4px 12px rgba(0,122,255,0.12);
}

/* ── Promise / Why Choose Us Cards ────────────────────────────────────────── */
.promise-card {
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.promise-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.promise-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.6rem;
}
.promise-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.promise-desc {
    line-height: 1.6;
}

/* ── Animate Slide Up (for hero) ───────────────────────────────────────────── */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0);    }
}
.animate-slide-up {
    animation: slideUpFade 0.6s ease forwards;
    opacity: 0;
}

/* ── Category Image Card (Homepage) ── */
.category-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: var(--transition);
    overflow: hidden;
    z-index: 1;
}
.category-card-image:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.cat-image-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.cat-image-link {
    font-size: 0.8rem;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ── Category Card Banner (Directory page) ── */
.category-card-banner {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--border);
}

/* ── Mobile Offcanvas Menu Styles ── */
.offcanvas {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border) !important;
    max-width: 330px !important;
}

.offcanvas-header {
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
}

.offcanvas-body {
    padding: 20px 24px;
}

/* Search input inside offcanvas */
.mobile-search .form-control {
    border-radius: 50px 0 0 50px !important;
    border: 1.5px solid var(--border);
    background: #f5f5f7;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.mobile-search .btn {
    border-radius: 0 50px 50px 0 !important;
    padding: 10px 20px;
    border: 1.5px solid var(--accent);
}

/* Mobile Nav List */
.mobile-nav-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-list li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-nav-list a {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    color: var(--text) !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none !important;
    gap: 12px;
}

.mobile-nav-list a i {
    width: 20px;
    font-size: 1.05rem;
    color: var(--text-muted);
    transition: var(--transition);
    text-align: center;
}

.mobile-nav-list a:hover,
.mobile-nav-list a.active {
    background: rgba(0, 122, 255, 0.05);
    color: var(--accent) !important;
}

.mobile-nav-list a:hover i,
.mobile-nav-list a.active i {
    color: var(--accent);
}

/* Accordion toggles */
.mobile-accordion-toggle {
    cursor: pointer;
}

.mobile-accordion-toggle .fa-chevron-down {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.mobile-accordion-toggle[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

/* Submenus */
.mobile-submenu {
    list-style: none !important;
    padding: 5px 0 10px 20px !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-left: 1.5px solid var(--border);
    margin-left: 25px !important;
}

.mobile-submenu li {
    list-style: none !important;
}

.mobile-submenu a {
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 12px;
    color: var(--text-muted) !important;
}

.mobile-submenu a:hover {
    color: var(--accent) !important;
    background: none !important;
}

/* Model Grid inside Submenu */
.mobile-model-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    border-left: none !important;
    margin-left: 10px !important;
    padding-left: 0 !important;
}

.mobile-model-grid li {
    list-style: none !important;
}

.mobile-model-grid a {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 6px;
    text-align: center;
    font-size: 0.78rem;
    display: block;
    color: var(--text-muted) !important;
    font-weight: 500;
}

.mobile-model-grid a:hover {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary);
}

/* Contact information block inside mobile menu */
.mobile-contact {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.mobile-contact p {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-contact p i {
    color: var(--accent);
}

/* ── High Contrast Styles for Dark Sections (Footer & Newsletter) ── */
.newsletter-section .text-muted,
.newsletter-section p {
    color: rgba(255, 255, 255, 0.75) !important;
}

.footer-section .text-muted,
.footer-section p.text-muted,
.footer-section .form-text.text-muted,
.footer-tagline.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.footer-contact-details p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ── Hero Vector Curve Divider ── */
.hero-shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
}

.hero-shape-divider svg {
    position: relative;
    display: block;
    width: 100%;
    height: 80px;
}

.hero-shape-divider .shape-fill {
    fill: #f5f5f7;
}

/* ══════════════════════════════════════════════════════════
   SECTION BACKGROUND VECTORS — PREMIUM REDESIGN
══════════════════════════════════════════════════════════ */

/* Shared base for all SVG vectors */
.sec-vec-svg {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

/* ── Apple icon watermark (iPhone Models section) ── */
.sec-vec-apple {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    line-height: 1;
}

/* ── Honeycomb CSS Pattern (Category section) ── */
.sec-vec-honeycomb {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-color: transparent;
    background-image:
        radial-gradient(circle farthest-side at 0% 50%, transparent 23%, rgba(0,122,255,0.06) 24%, rgba(0,122,255,0.06) 26%, transparent 27%),
        radial-gradient(circle farthest-side at 0% 50%, transparent 23%, rgba(0,122,255,0.06) 24%, rgba(0,122,255,0.06) 26%, transparent 27%),
        radial-gradient(circle farthest-side at 50% 100%, transparent 23%, rgba(0,122,255,0.06) 24%, rgba(0,122,255,0.06) 26%, transparent 27%),
        radial-gradient(circle farthest-side at 100% 50%, transparent 23%, rgba(0,122,255,0.06) 24%, rgba(0,122,255,0.06) 26%, transparent 27%),
        radial-gradient(circle farthest-side at 50% 0%, transparent 23%, rgba(0,122,255,0.06) 24%, rgba(0,122,255,0.06) 26%, transparent 27%);
    background-position: 0 0, 50px 0, 25px 43px, 75px 43px, 25px -43px;
    background-size: 100px 86px;
    opacity: .8;
}

/* ── Glow Blobs ── */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(70px);
}
.glow-blob-primary {
    background: radial-gradient(circle, rgba(0,122,255,0.22) 0%, transparent 70%);
}
.glow-blob-secondary {
    background: radial-gradient(circle, rgba(88,86,214,0.20) 0%, transparent 70%);
}

/* ── Dot Grid (kept for potential reuse) ── */
.vector-dot-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(circle, rgba(0,122,255,0.14) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
}

/* ── Grid Line Overlay ── */
.vector-grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0,122,255,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,122,255,0.08) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ── Paper Plane / Float shapes kept for fallback ── */
.vec-paper-plane,
.vec-float-shape,
.vec-quote-mark,
.vec-circuit-bg,
.vec-diagonal-lines,
.vec-ring {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

