@import url('https://fonts.googleapis.com/css2?family=Bellota+Text:wght@300;400;700&display=swap');

:root {
    --primary: #c5a059;
    --primary-light: #d4b87e;
    --primary-dark: #a6854a;
    --bg-black: #050505;
    --bg-dark: #0a0a0a;
    --bg-card: #121212;
    --text-white: #ffffff;
    --text-muted: #a0a0a0;
    --border: rgba(197, 160, 89, 0.2);
    --transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Bellota Text', cursive;
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Bellota Text', cursive;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-white);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.search-input {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    color: #fff;
    font-size: 0.85rem;
    width: 180px;
    transition: var(--transition);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    width: 220px;
}

.nav-actions i {
    width: 22px;
    height: 22px;
    color: var(--text-white);
    transition: var(--transition);
}

.nav-actions i:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dropdown */
.nav-links li {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    min-width: 220px;
    display: none;
    z-index: 100;
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.nav-links li:hover .dropdown {
    display: block;
}

/* Acordeón para móvil */
.nav-links li.active .dropdown {
    display: block;
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 1rem;
}

.nav-links li.active>a i {
    transform: rotate(180deg);
}

.dropdown a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
}

.dropdown a:hover {
    background: rgba(197, 160, 89, 0.1);
    color: var(--primary);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('../img/hero-bg.jpg') center 40%/cover no-repeat fixed;
    margin-bottom: 0;
    padding-top: 70px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
}

.section-title .underline {
    width: 80px;
    height: 3px;
    background: var(--primary);
    margin: 1.5rem auto 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

/* Grids */
.products-grid,
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 6rem;
}

.item-card,
.featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.item-card:hover,
.featured-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.item-img,
.featured-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.item-info {
    padding: 2rem;
}

.item-info h3 {
    margin: 0.5rem 0;
    font-size: 0.935rem;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.4rem;
    margin: 1rem 0;
}

.badge-type,
.featured-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: #000;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 4px 8px;
    text-transform: uppercase;
    z-index: 2;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 1;
}

.featured-overlay h3 {
    font-size: 1.02rem;
    color: #fff;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Product Detail */
.product-detail-grid,
.accessory-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    padding-top: 10rem;
    padding-bottom: 6rem;
    align-items: start;
}

.main-image-container {
    width: 100%;
    height: 650px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnails {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    overflow-x: auto;
}

.thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid var(--border);
    opacity: 0.6;
}

.thumb.active,
.thumb:hover {
    opacity: 1;
    border-color: var(--primary);
}

.product-brand-label {
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.product-title-large {
    font-size: 1.105rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.product-price-hero {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.product-description-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.75rem;
    line-height: 1.6;
    text-align: justify;
}

.specs-list {
    margin-bottom: 2.5rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-label {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.7rem;
}

.spec-value {
    color: #fff;
    font-weight: 800;
    font-size: 0.7rem;
}

.personalize-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.personalize-section h3 {
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}

.acc-option-row {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    cursor: pointer;
}

.acc-option-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    margin-top: 4px;
}

.acc-info {
    display: flex;
    flex-direction: column;
}

.acc-name {
    font-weight: 800;
    font-size: 0.8rem;
    color: #fff;
    text-transform: uppercase;
}

.acc-price-link {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    margin-top: 0.2rem;
}

.acc-price-link a {
    color: var(--primary);
    text-decoration: underline;
    margin-left: 0.5rem;
    font-weight: 400;
}

.cart-actions-row {
    display: flex;
    gap: 1.2rem;
    align-items: flex-end;
}

.qty-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.qty-group label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
}

.qty-group input {
    width: 70px;
    height: 45px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.btn-add-to-cart {
    flex: 1;
    height: 45px;
    background: var(--primary);
    color: #000;
    border: none;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-to-cart:hover {
    background: var(--primary-light);
}

/* Compatibility Box */
.compatibility-box {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: rgba(197, 160, 89, 0.05);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.compatibility-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    color: var(--text-white);
    font-size: 0.85rem;
}

.btn-view-watches {
    display: block;
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.btn-view-watches:hover {
    background: var(--primary);
    color: #000;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow);
}

.auth-card h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 4px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Cart & Checkout */
.cart-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    padding-top: 10rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 2.5rem;
    background: var(--bg-card);
    padding: 2rem;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    align-items: center;
}

.cart-item img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.cart-summary-inner,
.checkout-container {
    background: var(--bg-card);
    padding: 3rem;
    border: 1px solid var(--primary);
}

/* Guarantee */
.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 5rem;
}

.guarantee-card {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.guarantee-card i {
    color: var(--primary);
    width: 45px;
    height: 45px;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    padding: 6rem 0 3rem;
    background: var(--bg-black);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1100px) {
    .container {
        padding: 0 1.5rem;
    }

    .product-detail-grid,
    .accessory-detail-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 8rem;
    }

    .main-image-container {
        height: 450px;
    }

    .guarantee-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cart-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }

    .logo img {
        height: 50px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: var(--bg-black);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 6rem 2rem;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 999;
        gap: 1rem;
        overflow-y: auto;
        border-left: 1px solid var(--border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links a {
        padding: 1.2rem 0;
        font-size: 1.1rem;
        width: 100%;
        justify-content: space-between;
    }

    .dropdown {
        display: none;
        position: static;
        background: transparent;
        padding: 0 0 1rem 1rem;
        border: none;
        box-shadow: none;
    }

    .dropdown a {
        padding: 0.8rem 0;
        font-size: 0.9rem;
        opacity: 0.8;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-actions {
        gap: 1rem;
    }

    .search-input {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section-title {
        margin-bottom: 3rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .products-grid,
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .item-info {
        padding: 1rem;
    }

    .item-info h3 {
        font-size: 0.765rem;
        line-height: 1.3;
        height: 2.6em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .product-price {
        font-size: 1.1rem;
        margin: 0.5rem 0 1rem;
    }

    .btn-primary {
        padding: 0.8rem 1rem;
        font-size: 0.7rem;
    }

    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: 1rem;
        padding: 1rem;
        text-align: left;
    }

    .cart-item img {
        width: 100px;
        height: 100px;
    }

    .cart-item h3 {
        font-size: 0.9rem;
    }

    .guarantee-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .guarantee-card {
        padding: 2rem 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    .profile-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 480px) {

    .products-grid,
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }
}
/* ============================================
   IPHONE 14 SPECIFIC (393px width)
   ============================================ */
@media (max-width: 430px) {
    
    /* Container adjustments */
    .container {
        padding: 0 1rem;
    }

    /* Header & Logo */
    header {
        padding: 0.4rem 0;
    }

    .logo img {
        height: 42px;
    }

    .nav-actions {
        gap: 0.8rem;
    }

    .nav-actions i {
        width: 20px;
        height: 20px;
    }

    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
        top: -6px;
        right: -6px;
    }

    /* Hero Section */
    .hero {
        height: 85vh;
        padding-top: 60px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    /* Section Titles */
    .section-title {
        margin-bottom: 2rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .section-title .underline {
        width: 50px;
        height: 2px;
        margin: 1rem auto 0;
    }

    /* Products Grid */
    .products-grid,
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        margin-bottom: 3rem;
    }

    .item-card,
    .featured-card {
        border-radius: 4px;
    }

    .item-info {
        padding: 0.8rem;
    }

    .item-info h3 {
        font-size: 0.7rem;
        margin: 0.3rem 0;
        height: 2.4em;
    }

    .product-price {
        font-size: 0.95rem;
        margin: 0.4rem 0 0.8rem;
    }

    .badge-type,
    .featured-tag {
        font-size: 0.5rem;
        padding: 3px 6px;
        top: 0.5rem;
        right: 0.5rem;
    }

    .featured-overlay {
        padding: 1rem;
    }

    .featured-overlay h3 {
        font-size: 0.8rem;
        height: auto;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    /* Buttons */
    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .btn-primary {
        padding: 0.8rem 1.2rem;
        font-size: 0.7rem;
    }

    /* Product Detail Page */
    .product-detail-grid,
    .accessory-detail-grid {
        padding-top: 6rem;
        padding-bottom: 3rem;
        gap: 2rem;
    }

    .main-image-container {
        height: 320px;
    }

    .thumbnails {
        gap: 0.6rem;
        margin-top: 1rem;
    }

    .thumb {
        width: 70px;
        height: 70px;
    }

    .product-brand-label {
        font-size: 0.65rem;
    }

    .product-title-large {
        font-size: 1rem;
    }

    .product-price-hero {
        font-size: 1rem;
    }

    .product-description-text {
        font-size: 0.7rem;
    }

    .specs-list {
        margin-bottom: 1.5rem;
    }

    .spec-row {
        padding: 0.6rem 0;
    }

    .spec-label,
    .spec-value {
        font-size: 0.65rem;
    }

    .personalize-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .personalize-section h3 {
        font-size: 0.65rem;
        margin-bottom: 1rem;
    }

    .acc-option-row {
        gap: 0.8rem;
    }

    .acc-option-row input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }

    .acc-name {
        font-size: 0.7rem;
    }

    .acc-price-link {
        font-size: 0.65rem;
    }

    /* Cart Actions */
    .cart-actions-row {
        flex-direction: column;
        gap: 1rem;
    }

    .qty-group {
        width: 100%;
    }

    .qty-group input {
        width: 100%;
        height: 42px;
    }

    .qty-group label {
        font-size: 0.65rem;
    }

    .btn-add-to-cart {
        width: 100%;
        height: 50px;
        font-size: 0.75rem;
    }

    /* Compatibility Box */
    .compatibility-box {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .compatibility-info {
        font-size: 0.75rem;
        gap: 0.6rem;
    }

    .btn-view-watches {
        padding: 0.8rem;
        font-size: 0.7rem;
    }

    /* Cart Page */
    .cart-container {
        padding-top: 6rem;
        gap: 2rem;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 0.8rem;
        padding: 0.8rem;
    }

    .cart-item img {
        width: 80px;
        height: 80px;
    }

    .cart-item h3 {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .item-price {
        font-size: 0.9rem !important;
    }

    .item-details p {
        font-size: 0.75rem !important;
    }

    .item-accessories {
        margin-top: 0.5rem;
    }

    .acc-tag {
        font-size: 0.65rem !important;
        padding: 0.3rem 0.5rem;
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        background: rgba(197, 160, 89, 0.1);
        border-radius: 4px;
        margin-right: 0.3rem;
        margin-bottom: 0.3rem;
    }

    .item-actions {
        grid-column: span 2;
        text-align: right;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255,255,255,0.05);
        margin-top: 0.5rem;
    }

    .item-actions a {
        font-size: 0.75rem !important;
    }

    /* Cart Summary */
    .cart-summary-inner,
    .checkout-container {
        padding: 1.5rem;
    }

    .cart-summary-inner h2 {
        font-size: 1.2rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Auth Pages */
    .auth-container {
        padding: 6rem 1rem 3rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .auth-card h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.7rem;
    }

    .form-group input {
        padding: 0.9rem;
        font-size: 0.9rem;
    }

    /* Checkout Page */
    .payment-option {
        padding: 1rem !important;
        gap: 0.8rem !important;
    }

    .payment-option div {
        font-size: 0.85rem;
    }

    /* Guarantee Grid */
    .guarantee-grid {
        gap: 1rem;
        margin-top: 3rem;
    }

    .guarantee-card {
        padding: 1.5rem 1rem;
    }

    .guarantee-card i {
        width: 35px;
        height: 35px;
        margin-bottom: 1rem;
    }

    .guarantee-card h3 {
        font-size: 0.9rem;
    }

    .guarantee-card p {
        font-size: 0.75rem;
    }

    /* Footer */
    footer {
        padding: 3rem 0 2rem;
    }

    .footer-links {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    /* Profile Page */
    .profile-grid {
        gap: 1.5rem !important;
    }

    .profile-card {
        padding: 1.5rem !important;
    }

    /* Mobile Menu improvements */
    .nav-links {
        width: 90%;
        padding: 5rem 1.5rem;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 1rem 0;
    }

    .dropdown a {
        font-size: 0.85rem;
        padding: 0.7rem 0;
    }

    /* Page titles */
    main h1 {
        font-size: 1.5rem !important;
        margin-bottom: 2rem !important;
    }
}

/* ============================================
   ADDITIONAL MOBILE STYLES FOR IPHONE 14
   ============================================ */
@media (max-width: 430px) {
    
    /* Order Success Page */
    .order-success-card {
        padding: 2rem 1rem !important;
    }

    .order-success-card h1 {
        font-size: 1.3rem !important;
    }

    .order-success-card p {
        font-size: 0.9rem !important;
    }

    .order-success-card i[style*="width: 80px"] {
        width: 50px !important;
        height: 50px !important;
    }

    /* Payment Instructions */
    .payment-instructions {
        padding: 1rem !important;
    }

    .payment-instructions h3 {
        font-size: 0.85rem !important;
    }

    .payment-instructions p {
        font-size: 0.8rem !important;
    }

    .payment-instructions .btn {
        padding: 1rem !important;
        font-size: 0.75rem !important;
    }

    /* Profile Page Mobile */
    .profile-grid {
        display: block !important;
    }

    .profile-grid aside {
        margin-bottom: 2rem;
    }

    .profile-grid aside > div {
        padding: 1.5rem !important;
    }

    .profile-grid aside div[style*="width: 80px"] {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }

    .order-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        padding: 1.5rem !important;
    }

    .order-item > div:last-child {
        width: 100%;
        text-align: left !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Profile Edit Page */
    .btn-group {
        flex-direction: column !important;
    }

    .btn-group .btn {
        flex: none !important;
        width: 100% !important;
    }

    /* Inline Padding Fixes */
    [style*="padding: 4rem 2rem"],
    [style*="padding: 4rem"] {
        padding: 2rem 1rem !important;
    }

    [style*="padding: 3rem"] {
        padding: 1.5rem !important;
    }

    [style*="padding: 2rem"] {
        padding: 1.5rem !important;
    }

    /* Success Icon Sizing */
    [data-lucide="check-circle"][style*="width: 80px"] {
        width: 50px !important;
        height: 50px !important;
    }

    /* Button Group Success Page */
    [style*="display: flex"][style*="gap: 1rem"][style*="justify-content: center"] {
        flex-direction: column !important;
        width: 100% !important;
    }

    [style*="display: flex"][style*="gap: 1rem"][style*="justify-content: center"] .btn {
        width: 100% !important;
    }

    /* General Inline Fix for Padding Top */
    main[style*="padding-top: 10rem"] {
        padding-top: 6rem !important;
    }

    /* Monospace blocks */
    [style*="font-family: monospace"] {
        font-size: 0.85rem !important;
        word-break: break-all;
    }
}

/* ============================================
   MOBILE OVERRIDES WITH IMPORTANT
   ============================================ */
@media (max-width: 430px) {
    /* Main content padding override */
    .container[style*="padding-top: 10rem"] {
        padding-top: 6rem !important;
    }

    .profile-main {
        padding-top: 6rem !important;
    }

    /* Profile grid mobile layout */
    .profile-grid[style] {
        display: block !important;
        grid-template-columns: 1fr !important;
    }

    /* Profile aside card */
    .profile-grid aside > div[style] {
        padding: 1.5rem !important;
    }

    /* User avatar circle */
    .profile-grid div[style*="width: 80px"][style*="height: 80px"] {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    /* Order history section */
    .profile-grid section h2 {
        font-size: 1.2rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Order item cards */
    .order-item[style] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.8rem !important;
        padding: 1rem !important;
    }

    /* Cart page title */
    main > h1[style] {
        font-size: 1.4rem !important;
        margin-bottom: 2rem !important;
    }

    /* Checkout container responsive */
    .checkout-container[style] {
        padding: 1.5rem !important;
    }

    /* Order success page */
    main > div[style*="background: var(--bg-card)"][style*="padding: 4rem"] {
        padding: 2rem 1rem !important;
        border-radius: 4px !important;
    }

    main > div[style*="max-width: 700px"] {
        max-width: 100% !important;
    }

    /* Payment instructions box */
    div[style*="background: rgba(0,0,0,0.3)"][style*="padding: 2rem"] {
        padding: 1rem !important;
    }

    div[style*="font-family: monospace"] {
        font-size: 0.8rem !important;
        padding: 1rem !important;
        word-break: break-all;
    }

    div[style*="font-family: monospace"] p {
        font-size: 0.8rem !important;
        margin-bottom: 0.4rem !important;
    }

    /* Order success buttons */
    div[style*="display: flex"][style*="gap: 1rem"][style*="justify-content: center"] {
        flex-direction: column !important;
    }

    div[style*="display: flex"][style*="gap: 1rem"][style*="justify-content: center"] a {
        width: 100% !important;
        text-align: center !important;
    }

    /* Profile edit form */
    form[style*="background: var(--bg-card)"][style*="padding: 2rem"] {
        padding: 1.5rem !important;
    }

    /* Btn group */
    .btn-group {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }

    .btn-group .btn,
    .btn-group a {
        width: 100% !important;
        flex: none !important;
    }

    /* Address display in checkout */
    div[style*="background: rgba(255,255,255,0.03)"][style*="padding: 1.5rem"][style*="border-left: 4px solid"] {
        padding: 1rem !important;
    }

    /* Payment options */
    label[style*="display: flex"][style*="padding: 1.5rem"] {
        padding: 1rem !important;
        gap: 0.8rem !important;
    }

    label[style*="display: flex"] div[style*="font-weight: 700"] {
        font-size: 0.9rem !important;
    }

    label[style*="display: flex"] div[style*="font-size: 0.8rem"] {
        font-size: 0.7rem !important;
    }

    /* Total display checkout */
    div[style*="background: rgba(255,255,255,0.03)"][style*="padding: 2rem"][style*="border-radius: 8px"] {
        padding: 1.5rem !important;
    }

    div[style*="font-size: 1.5rem"][style*="font-weight: 800"] {
        font-size: 1.2rem !important;
    }

    /* Empty cart styling */
    div[style*="text-align: center"][style*="padding: 4rem"] {
        padding: 2rem 1rem !important;
    }

    div[style*="text-align: center"] i[style*="width: 64px"] {
        width: 48px !important;
        height: 48px !important;
    }
}

/* ============================================
   FOOTER MOBILE STYLES
   ============================================ */
@media (max-width: 430px) {
    footer[style] {
        padding: 2rem 1rem !important;
        margin-top: 2rem !important;
    }

    footer p[style*="font-size: 0.9rem"] {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
    }

    footer p[style*="font-size: 0.8rem"] {
        font-size: 0.75rem !important;
    }
}

/* ============================================
   TOUCH FRIENDLY ENHANCEMENTS
   ============================================ */
@media (max-width: 430px) {
    /* Larger touch targets */
    .btn, button, a.btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    input, select, textarea {
        min-height: 44px;
        font-size: 16px !important; /* Prevents iOS zoom on focus */
    }

    /* Better spacing for forms */
    .form-group {
        margin-bottom: 1.2rem;
    }

    /* Checkbox and radio touch targets */
    input[type="checkbox"],
    input[type="radio"] {
        min-width: 22px;
        min-height: 22px;
    }

    /* Links more tappable */
    .nav-links a,
    .dropdown a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Cart item actions */
    .cart-item a[style*="color: #ff4d4d"] {
        min-height: 44px;
        display: inline-flex !important;
        align-items: center !important;
    }
}

/* ============================================
   SAFE AREA INSETS (NOTCH SUPPORT)
   ============================================ */
@supports (padding: max(0px)) {
    @media (max-width: 430px) {
        header {
            padding-left: max(0.4rem, env(safe-area-inset-left));
            padding-right: max(0.4rem, env(safe-area-inset-right));
        }

        footer {
            padding-bottom: max(2rem, env(safe-area-inset-bottom));
        }

        .nav-links {
            padding-bottom: max(2rem, env(safe-area-inset-bottom));
        }
    }
}
