/* HOT STORE Theme - Apple Exclusive + Local Trust */
:root {
    --bg-body: #050505;
    --bg-card: #0f0f0f;
    --text-main: #ffffff;
    --text-muted: #a1a1a6;

    /* Fire Colors */
    --fire-orange: #FF4500;
    --fire-yellow: #FFD700;
    --fire-blue: #00BFFF;
    --fire-blue-light: #87CEFA;
    --fire-purple: #9D00FF;
    --fire-purple-light: #D580FF;
    --text-white: #ffffff;

    --nav-bg: rgba(5, 5, 5, 0.9);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --btn-radius: 980px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.4;
    overflow-x: hidden;
}

a,
button {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

/* Global Nav */
.global-nav {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    width: 100%;
    height: 52px;
    position: fixed;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid rgba(255, 69, 0, 0.2);
}

.nav-content {
    max-width: 1000px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-flame {
    color: var(--fire-orange);
    font-size: 18px;
    filter: drop-shadow(0 0 5px var(--fire-orange));
    animation: flicker 2s infinite alternate;
}

.logo-sub {
    font-weight: 300;
    opacity: 0.8;
}

.nav-items-desktop {
    display: flex;
    gap: 25px;
    font-size: 13px;
    font-weight: 500;
}

.nav-items-desktop a {
    opacity: 0.8;
}

.nav-items-desktop a:hover {
    opacity: 1;
    color: var(--fire-orange);
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.nav-actions i {
    font-size: 18px;
    color: #fff;
    transition: color 0.3s;
}

.nav-actions i:hover {
    color: var(--fire-orange);
}

/* Ribbon */
.ribbon {
    background: linear-gradient(90deg, #1a0500 0%, #0a0a0a 100%);
    padding: 10px 0;
    text-align: center;
    font-size: 13px;
    margin-top: 52px;
    border-bottom: 1px solid rgba(255, 69, 0, 0.1);
}

.ribbon p {
    color: #ccc;
}

.ribbon a {
    color: var(--fire-orange);
    font-weight: 600;
    margin-left: 5px;
}

.text-orange {
    color: var(--fire-orange);
    font-weight: 700;
}

.text-white {
    color: var(--text-white);
    font-weight: 700;
    border-bottom: 1px dashed #555;
}

/* Typography */
.new-label {
    color: var(--fire-orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: inline-block;
    border: 1px solid var(--fire-orange);
    padding: 4px 8px;
    border-radius: 4px;
}

.headline {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.gradient-text-orange {
    background: linear-gradient(to right, var(--fire-yellow), var(--fire-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 69, 0, 0.3));
}

.gradient-text-blue {
    background: linear-gradient(to right, var(--fire-blue-light), var(--fire-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 191, 255, 0.3));
}

.subhead {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.text-blue {
    color: var(--fire-blue);
}

.section-title {
    max-width: 1200px;
    margin: 40px auto 10px auto;
    padding: 0 15px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
}

.section-subtitle {
    max-width: 1200px;
    margin: 30px auto 10px auto;
    padding: 0 15px;
}

.section-subtitle h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--fire-orange);
    border-bottom: 2px solid rgba(255, 69, 0, 0.3);
    padding-bottom: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--btn-radius);
    font-size: 16px;
    font-weight: 600;
    margin: 5px;
}

.btn-text {
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-fire {
    background: linear-gradient(135deg, var(--fire-orange), #ff0000);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

.btn-fire:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.6);
}

.btn-outline-fire {
    border: 1px solid var(--fire-orange);
    color: var(--fire-orange);
}

.btn-outline-fire:hover {
    background: rgba(255, 69, 0, 0.1);
}

.btn-blue-fire {
    background: linear-gradient(135deg, var(--fire-blue), #0000ff);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
}

.btn-blue-fire:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.6);
}

.link-fire {
    color: var(--fire-orange);
}

.link-blue-fire {
    color: var(--fire-blue);
}

/* Trust Badges */
.trust-section {
    background: #0a0a0a;
    padding: 40px 20px;
    border-bottom: 1px solid #1a1a1a;
}

.trust-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.trust-item i {
    font-size: 32px;
    color: var(--fire-orange);
    margin-bottom: 15px;
}

.trust-item h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.trust-item p {
    font-size: 13px;
    color: var(--text-muted);
}

/* About Section */
.about-section {
    background: radial-gradient(circle at top, #1a0a00 0%, #000000 100%);
    padding: 80px 20px;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-insta {
    margin-top: 20px;
}

/* Hero Sections */
.hero-section {
    height: auto;
    min-height: 700px;
    position: relative;
    text-align: center;
    padding: 60px 20px 40px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #080808;
}

.hero-video {
    position: relative;
    width: 80%;
    max-width: 800px;
    height: auto;
    margin: 20px auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 69, 0, 0.3);
    z-index: 10;
    display: block;
}

.hero-dark {
    background: radial-gradient(circle at center, #1a0a00 0%, #000000 70%);
}

.hero-blue {
    background: radial-gradient(circle at center, #000a1a 0%, #000000 70%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Updated Images */
.iphone-17-img {
    background-image: url('https://images.unsplash.com/photo-1678652197831-2d180705cd2c?q=80&w=2107&auto=format&fit=crop');
}

.watch-ultra-img {
    background-image: url('https://images.unsplash.com/photo-1665799797203-3462b0936279?q=80&w=2070&auto=format&fit=crop');
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.tile {
    background: var(--bg-card);
    height: 500px;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tile:hover {
    transform: scale(1.02);
    z-index: 5;
}

.tile-dark:hover {
    border-color: rgba(255, 69, 0, 0.3);
}

.tile-blue:hover {
    border-color: rgba(0, 191, 255, 0.3);
}

.tile-headline {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.tile-subhead {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.tile-image {
    width: 100%;
    height: 300px;
    position: absolute;
    bottom: 0;
    left: 0;
    background-size: cover;
    background-position: center;
}

/* Catalog Images */

/* iPhone 17 Series */
.iphone17promax-img {
    background-image: url('https://images.unsplash.com/photo-1696446701796-da61225697cc?q=80&w=2070&auto=format&fit=crop');
}

.iphone17promax-img-2 {
    background-image: url('https://images.unsplash.com/photo-1695048133142-1a20484d2569?q=80&w=2070&auto=format&fit=crop');
}

.iphone17promax-img-3 {
    background-image: url('https://images.unsplash.com/photo-1678652197831-2d180705cd2c?q=80&w=2107&auto=format&fit=crop');
}

.iphone17pro-img {
    background-image: url('https://images.unsplash.com/photo-1695048133142-1a20484d2569?q=80&w=2070&auto=format&fit=crop');
}

.iphone17pro-img-2 {
    background-image: url('https://images.unsplash.com/photo-1696446701796-da61225697cc?q=80&w=2070&auto=format&fit=crop');
}

.iphone17plus-img {
    background-image: url('https://images.unsplash.com/photo-1678652197831-2d180705cd2c?q=80&w=2107&auto=format&fit=crop');
}

.iphone17plus-img-2 {
    background-image: url('https://images.unsplash.com/photo-1695048133142-1a20484d2569?q=80&w=2070&auto=format&fit=crop');
}

.iphone17-img {
    background-image: url('https://images.unsplash.com/photo-1678652197831-2d180705cd2c?q=80&w=2107&auto=format&fit=crop');
}

.iphone17-img-2 {
    background-image: url('https://images.unsplash.com/photo-1696446701796-da61225697cc?q=80&w=2070&auto=format&fit=crop');
}

/* iPhone 16 Series */
.iphone16promax-img {
    background-image: url('https://images.unsplash.com/photo-1695048133142-1a20484d2569?q=80&w=2070&auto=format&fit=crop');
}

.iphone16promax-img-2 {
    background-image: url('https://images.unsplash.com/photo-1678652197831-2d180705cd2c?q=80&w=2107&auto=format&fit=crop');
}

.iphone16promax-img-3 {
    background-image: url('https://images.unsplash.com/photo-1696446701796-da61225697cc?q=80&w=2070&auto=format&fit=crop');
}

.iphone16pro-img {
    background-image: url('https://images.unsplash.com/photo-1696446701796-da61225697cc?q=80&w=2070&auto=format&fit=crop');
}

.iphone16pro-img-2 {
    background-image: url('https://images.unsplash.com/photo-1695048133142-1a20484d2569?q=80&w=2070&auto=format&fit=crop');
}

.iphone16plus-img {
    background-image: url('https://images.unsplash.com/photo-1678652197831-2d180705cd2c?q=80&w=2107&auto=format&fit=crop');
}

.iphone16plus-img-2 {
    background-image: url('https://images.unsplash.com/photo-1696446701796-da61225697cc?q=80&w=2070&auto=format&fit=crop');
}

.iphone16-img {
    background-image: url('https://images.unsplash.com/photo-1695048133142-1a20484d2569?q=80&w=2070&auto=format&fit=crop');
}

.iphone16-img-2 {
    background-image: url('https://images.unsplash.com/photo-1678652197831-2d180705cd2c?q=80&w=2107&auto=format&fit=crop');
}

.iphone16-img-3 {
    background-image: url('https://images.unsplash.com/photo-1696446701796-da61225697cc?q=80&w=2070&auto=format&fit=crop');
}

/* iPhone 15 Series */
.iphone15promax-img {
    background-image: url('https://images.unsplash.com/photo-1695048133142-1a20484d2569?q=80&w=2070&auto=format&fit=crop');
}

.iphone15promax-img-2 {
    background-image: url('https://images.unsplash.com/photo-1696446701796-da61225697cc?q=80&w=2070&auto=format&fit=crop');
}

.iphone15promax-img-3 {
    background-image: url('https://images.unsplash.com/photo-1678652197831-2d180705cd2c?q=80&w=2107&auto=format&fit=crop');
}

.iphone15pro-img {
    background-image: url('https://images.unsplash.com/photo-1695048133142-1a20484d2569?q=80&w=2070&auto=format&fit=crop');
}

.iphone15pro-img-2 {
    background-image: url('https://images.unsplash.com/photo-1696446701796-da61225697cc?q=80&w=2070&auto=format&fit=crop');
}

.iphone15plus-img {
    background-image: url('https://images.unsplash.com/photo-1696446701796-da61225697cc?q=80&w=2070&auto=format&fit=crop');
}

.iphone15plus-img-2 {
    background-image: url('https://images.unsplash.com/photo-1695048133142-1a20484d2569?q=80&w=2070&auto=format&fit=crop');
}

.iphone15-img {
    background-image: url('https://images.unsplash.com/photo-1696446701796-da61225697cc?q=80&w=2070&auto=format&fit=crop');
}

.iphone15-img-2 {
    background-image: url('https://images.unsplash.com/photo-1695048133142-1a20484d2569?q=80&w=2070&auto=format&fit=crop');
}

.iphone15-img-3 {
    background-image: url('https://images.unsplash.com/photo-1678652197831-2d180705cd2c?q=80&w=2107&auto=format&fit=crop');
}

/* iPhone 14 Series */
.iphone14promax-img {
    background-image: url('https://images.unsplash.com/photo-1663499482523-1c0c16ad6d88?q=80&w=2070&auto=format&fit=crop');
}

.iphone14promax-img-2 {
    background-image: url('https://images.unsplash.com/photo-1678652197831-2d180705cd2c?q=80&w=2107&auto=format&fit=crop');
}

.iphone14pro-img {
    background-image: url('https://images.unsplash.com/photo-1663499427649-65a88c3a9f0e?q=80&w=2070&auto=format&fit=crop');
}

.iphone14pro-img-2 {
    background-image: url('https://images.unsplash.com/photo-1663499482523-1c0c16ad6d88?q=80&w=2070&auto=format&fit=crop');
}

.iphone14plus-img {
    background-image: url('https://images.unsplash.com/photo-1663499427649-65a88c3a9f0e?q=80&w=2070&auto=format&fit=crop');
}

.iphone14plus-img-2 {
    background-image: url('https://images.unsplash.com/photo-1663499482523-1c0c16ad6d88?q=80&w=2070&auto=format&fit=crop');
}

.iphone14-img {
    background-image: url('https://images.unsplash.com/photo-1663499427649-65a88c3a9f0e?q=80&w=2070&auto=format&fit=crop');
}

.iphone14-img-2 {
    background-image: url('https://images.unsplash.com/photo-1663499482523-1c0c16ad6d88?q=80&w=2070&auto=format&fit=crop');
}

/* iPhone 13 Series */
.iphone13promax-img {
    background-image: url('https://images.unsplash.com/photo-1632661674596-df8be070a5c5?q=80&w=2070&auto=format&fit=crop');
}

.iphone13promax-img-2 {
    background-image: url('https://images.unsplash.com/photo-1632661674596-df8be070a5c5?q=80&w=2070&auto=format&fit=crop');
}

.iphone13pro-img {
    background-image: url('https://images.unsplash.com/photo-1632661674596-df8be070a5c5?q=80&w=2070&auto=format&fit=crop');
}

.iphone13pro-img-2 {
    background-image: url('https://images.unsplash.com/photo-1632661674596-df8be070a5c5?q=80&w=2070&auto=format&fit=crop');
}

.iphone13mini-img {
    background-image: url('https://images.unsplash.com/photo-1611472173362-3f53dbd65d80?q=80&w=2070&auto=format&fit=crop');
}

.iphone13mini-img-2 {
    background-image: url('https://images.unsplash.com/photo-1632661674596-df8be070a5c5?q=80&w=2070&auto=format&fit=crop');
}

.iphone13-img {
    background-image: url('https://images.unsplash.com/photo-1611472173362-3f53dbd65d80?q=80&w=2070&auto=format&fit=crop');
}

.iphone13-img-2 {
    background-image: url('https://images.unsplash.com/photo-1632661674596-df8be070a5c5?q=80&w=2070&auto=format&fit=crop');
}

/* iPhone 12 Series */
.iphone12promax-img {
    background-image: url('https://images.unsplash.com/photo-1605787020600-b9ebd5df1d07?q=80&w=2070&auto=format&fit=crop');
}

.iphone12promax-img-2 {
    background-image: url('https://images.unsplash.com/photo-1611472173362-3f53dbd65d80?q=80&w=2070&auto=format&fit=crop');
}

.iphone12pro-img {
    background-image: url('https://images.unsplash.com/photo-1605787020600-b9ebd5df1d07?q=80&w=2070&auto=format&fit=crop');
}

.iphone12pro-img-2 {
    background-image: url('https://images.unsplash.com/photo-1611472173362-3f53dbd65d80?q=80&w=2070&auto=format&fit=crop');
}

.iphone12mini-img {
    background-image: url('https://images.unsplash.com/photo-1611472173362-3f53dbd65d80?q=80&w=2070&auto=format&fit=crop');
}

.iphone12mini-img-2 {
    background-image: url('https://images.unsplash.com/photo-1605787020600-b9ebd5df1d07?q=80&w=2070&auto=format&fit=crop');
}

.iphone12-img {
    background-image: url('https://images.unsplash.com/photo-1605787020600-b9ebd5df1d07?q=80&w=2070&auto=format&fit=crop');
}

.iphone12-img-2 {
    background-image: url('https://images.unsplash.com/photo-1611472173362-3f53dbd65d80?q=80&w=2070&auto=format&fit=crop');
}

.airpods-img {
    background-image: url('https://images.unsplash.com/photo-1606841837239-c5a1a4a07afe?q=80&w=2070&auto=format&fit=crop');
}

.watch-s9-img {
    background-image: url('https://images.unsplash.com/photo-1546868871-7041f2a55e12?q=80&w=2064&auto=format&fit=crop');
}

.watch-se-img {
    background-image: url('https://images.unsplash.com/photo-1617043786394-f977fa12eddf?q=80&w=2070&auto=format&fit=crop');
}


.tile-bg-icons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 150px;
    color: rgba(255, 69, 0, 0.05);
    z-index: 0;
}

/* Modal Stylings */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 5;
}

.modal-body {
    display: flex;
    flex-direction: row;
}

.modal-image-container {
    flex: 1;
    background: #0f0f0f;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-img-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.modal-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 69, 0, 0.8);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background: var(--fire-orange);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.gallery-nav i {
    font-size: 18px;
}

/* Gallery Indicators */
.gallery-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.gallery-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-indicator.active {
    background: var(--fire-orange);
    width: 24px;
    border-radius: 4px;
}

.modal-info h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

.modal-info p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-actions .btn {
    width: 100%;
    justify-content: center;
}

/* Footer */
footer {
    background: #000;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #1a1a1a;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.footer-logo i {
    color: var(--fire-orange);
}

.footer-socials {
    margin: 20px 0;
}

.footer-socials i {
    font-size: 24px;
    margin: 0 10px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-socials i:hover {
    color: var(--fire-orange);
}

.copyright {
    font-size: 12px;
    color: #555;
}

@keyframes flicker {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    .nav-items-desktop {
        display: none;
    }

    .bento-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .headline {
        font-size: 36px;
    }

    .hero-section {
        min-height: 600px;
    }

    .hero-video {
        width: 95%;
        max-width: 100%;
        margin: 15px auto;
    }

    .tile {
        height: 400px;
    }

    .image-placeholder {
        height: 250px;
    }

    .trust-item {
        margin-bottom: 20px;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-image-container {
        height: 250px;
        min-height: 250px;
    }

    .modal-info {
        padding: 25px;
    }
}

/* Navigation Tabs Visibility */
.category-content,
.subcategory-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.category-content.active,
.subcategory-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Offset Fix */
main {
    scroll-padding-top: 80px;
}

/* Category Navigation & Animations */

/* Container Setup */
.category-navigation {
    padding: 40px 20px 20px;
    background: #050505;
    text-align: center;
}

.category-nav-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-main);
}

/* Glassy Nav Wrapper */
.glassy-nav {
    display: inline-flex;
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Slider (The moving background) */
.nav-slider {
    position: absolute;
    top: 5px;
    left: 5px;
    height: calc(100% - 10px);
    background: var(--fire-orange);
    /* Default color */
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
    width: 0;
    /* JS will set this */
    box-shadow: 0 2px 10px rgba(255, 69, 0, 0.4);
}

/* Buttons */
.category-btn {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 100px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-btn.active {
    color: #fff;
    /* Background is handled by slider */
}

.category-btn:hover {
    color: #fff;
}

/* Subcategory Nav (Smaller) */
.subcategory-navigation {
    padding: 20px 0 40px;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    /* Enable scroll on mobile */
    -webkit-overflow-scrolling: touch;
}

.glassy-nav-sm {
    display: inline-flex;
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 4px;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    /* Prevent wrapping */
}

.nav-slider-sm {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    background: #333;
    /* Default dark for subcats */
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
    width: 0;
}

.subcategory-btn {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 100px;
    transition: color 0.3s ease;
}

.subcategory-btn.active {
    color: #fff;
}

.subcategory-btn:hover {
    color: #fff;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

/* Hide default active styling from previous CSS to avoid conflict */
.category-content {
    display: none;
    width: 100%;
    /* Ensure full width */
}

.category-content.active {
    display: block;
}

.subcategory-content {
    display: none;
}

.subcategory-content.active {
    display: block;
    animation: fadeUp 0.5s ease-out forwards;
    /* Animate subcontent too */
}

/* Purple Theme (iPads) */
.gradient-text-purple {
    background: linear-gradient(to right, var(--fire-purple-light), var(--fire-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(157, 0, 255, 0.3));
}

.btn-purple-fire {
    background: linear-gradient(135deg, var(--fire-purple), #800080);
    color: #fff;
    box-shadow: 0 4px 15px rgba(157, 0, 255, 0.4);
}

.btn-purple-fire:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 0, 255, 0.6);
}

.link-purple-fire {
    color: var(--fire-purple);
}

.tile-purple:hover {
    border-color: rgba(157, 0, 255, 0.3);
}

/* iPad Images */
.ipad-pro-m4-img {
    background-image: url('https://images.unsplash.com/photo-1715783222591-626245020166?q=80&w=2070&auto=format&fit=crop');
}

.ipad-air-m2-img {
    background-image: url('https://images.unsplash.com/photo-1715783222880-6020584443ee?q=80&w=2102&auto=format&fit=crop');
}

.ipad-10th-img {
    background-image: url('https://images.unsplash.com/photo-1667507316335-08ad7e594f8a?q=80&w=1974&auto=format&fit=crop');
}


/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #1ebc57;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }

}

/* =========================================
   Standard E-commerce Grid (iPhones)
   ========================================= */

.family-section {
    padding: 40px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.family-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.family-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.family-compare-link {
    color: #2997ff;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.family-compare-link:hover {
    text-decoration: underline;
}

/* Grid Layout - 4 columns on desktop */
.family-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Response for smaller screens */
@media (max-width: 1024px) {
    .family-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .family-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .family-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .family-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card Styling */
.family-card {
    background: #1c1c1e;
    /* Dark card background */
    border-radius: 18px;
    padding: 30px 20px 20px 20px;
    /* Top padding for image breathing room */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.family-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #2c2c2e;
}

/* Image Handling - CRITICAL to fix "gigantic" issue */
.family-image-container {
    height: 200px;
    /* Fixed height container */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.family-image {
    max-width: 100%;
    max-height: 100%;
    /* Contain within the 200px height */
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Swatches */
.family-colors {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    justify-content: center;
}

.family-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Typography */
.family-name {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 5px 0;
}

.family-desc {
    font-size: 13px;
    line-height: 1.4;
    color: #86868b;
    margin-bottom: 15px;
    flex-grow: 1;
    /* Pushes price/actions down */
}

.family-price {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 20px;
}

/* Actions */
.family-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.family-btn-primary {
    background-color: #0071e3;
    color: white;
    padding: 8px 20px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
    width: 100%;
    /* Full width button on card */
    max-width: 180px;
}

.family-btn-primary:hover {
    background-color: #0077ED;
}

.family-btn-link {
    color: #2997ff;
    font-size: 13px;
    text-decoration: none;
}

.family-btn-link:hover {
    text-decoration: underline;

}

/* =========================================
   Comparison Page
   ========================================= */

.compare-page {
    background-color: #000;
    color: #fff;
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
}

.compare-container {
    max-width: 1200px;
    margin: 80px auto;
    /* Space for fixed header */
    padding: 40px 20px;
    text-align: center;
}

.compare-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
}

.compare-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.compare-header-row,
.compare-row,
.compare-actions-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: flex-start;
    /* Align top for header row */
}

.compare-row {
    align-items: center;
    /* Center align for specs */
    border-bottom: 1px solid #333;
    padding-bottom: 30px;
}

.compare-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Header Row Styles */
.compare-img {
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: opacity 0.2s ease-in-out;
}

.compare-colors {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.compare-colors .swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.compare-colors .swatch:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.compare-name {
    font-size: 24px;
    font-weight: 600;
    margin: 10px 0 5px;
}

.compare-tagline {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
    min-height: 40px;
    /* Align heights */
}

.compare-price {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.btn-buy-small {
    background-color: #0071e3;
    color: #fff;
    padding: 8px 16px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-buy-small:hover {
    background-color: #0077ed;
}

/* Spec Row Styles */
.spec-value {
    font-size: 20px;
    font-weight: 600;
    margin: 10px 0 5px;
}

.spec-label {
    font-size: 14px;
    color: #aaa;
    line-height: 1.4;
}

.spec-icon {
    font-size: 32px;
    margin-bottom: 15px;
    color: #fff;
}

.compare-actions-row {
    margin-top: 20px;
}

.link-blue {
    color: #2997ff;
    text-decoration: none;
    font-size: 16px;
}

.link-blue:hover {
    text-decoration: underline;
}

.divider {
    height: 1px;
    background-color: #333;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 900px) {

    .compare-header-row,
    .compare-row,
    .compare-actions-row {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablet */
        gap: 40px 20px;
    }

    .compare-img {
        height: 150px;
    }
}

@media (max-width: 600px) {

    .compare-header-row,
    .compare-row,
    .compare-actions-row {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
        gap: 40px;
    }
}