.cart-action-row {
    display: flex;
    align-items: center;
    margin-top: 10px;
}
.cart-qty-input {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 1rem;
    width: 50px;
    text-align: center;
    margin-right: 8px;
}
.add-to-cart-btn {
    width: 100%;
    padding: 12px 0;
    margin-top: 12px;
    background: #0ea5e9;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(56,189,248,0.07);
}
.add-to-cart-btn:hover:not(:disabled) {
    background: #38bdf8;
}
.add-to-cart-btn:disabled {
    background: #38bdf8;
    cursor: not-allowed;
    opacity: 0.8;
}
.full-image-modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30,41,59,0.38);
}
.full-image-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(56,189,248,0.18);
    padding: 18px 18px 12px 18px;
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.full-image-close {
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 2.2rem;
    color: #64748b;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
}
.full-image-close:hover {
    color: #0ea5e9;
}
#fullImageView {
    max-width: 80vw;
    max-height: 75vh;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(56,189,248,0.13);
    margin-top: 24px;
}
/* Unique Shop Owner Card */
.shop-owner-special-card {
    border: 2px solid #0ea5e9;
    background: linear-gradient(135deg, #f0f9ff 60%, #e0f2fe 100%);
    box-shadow: 0 6px 32px rgba(14,165,233,0.10);
    position: relative;
    overflow: visible;
    z-index: 1;
}
.shop-owner-special-card .shop-product-shop {
    color: #0ea5e9;
    font-weight: 700;
    font-size: 1.05em;
    margin-top: 8px;
    letter-spacing: 0.5px;
}
.shop-owner-special-card .shop-product-link {
    background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 100%);
    color: #fff;
    border: none;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(56,189,248,0.13);
}
.shop-owner-special-card .shop-product-link:hover {
    background: linear-gradient(90deg, #38bdf8 0%, #0ea5e9 100%);
}

/* Shop Owner Gallery Modal */
.shop-owner-gallery-modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30,41,59,0.18);
}
.shop-owner-gallery-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(56,189,248,0.18);
    padding: 32px 24px 24px 24px;
    position: relative;
    width: 100%;
    max-width: 900px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.shop-owner-gallery-close {
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 2.2rem;
    color: #64748b;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
}
.shop-owner-gallery-close:hover {
    color: #0ea5e9;
}
.gallery-title {
    color: #0ea5e9;
    text-align: center;
    margin-bottom: 24px;
    font-size: 2rem;
    font-weight: 700;
}
.shop-owner-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}
.shop-owner-gallery-card {
    background: linear-gradient(135deg, #e0f2fe 60%, #f0f9ff 100%);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(56,189,248,0.13);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #38bdf8;
    transition: box-shadow 0.2s;
}
.shop-owner-gallery-card:hover {
    box-shadow: 0 6px 32px rgba(14,165,233,0.13);
}
.shop-owner-gallery-carousel {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.shop-owner-gallery-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #0ea5e9;
    background: #fff;
}
.shop-owner-gallery-info {
    text-align: left;
    width: 100%;
    margin-top: 8px;
}
.shop-owner-gallery-info h3 {
    font-size: 1.15rem;
    color: #0ea5e9;
    margin-bottom: 6px;
}
/* Shop Main Page Product Grid */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin: 40px 0;
}
.shop-product-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(56,189,248,0.07);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
}
.shop-product-card:hover {
    box-shadow: 0 4px 24px rgba(56,189,248,0.18);
}
.shop-product-gallery {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.shop-product-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.shop-product-info {
    text-align: left;
    width: 100%;
}
.shop-product-info h3 {
    font-size: 1.2rem;
    color: #0ea5e9;
    margin-bottom: 6px;
}
.shop-product-prices {
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
}
.regular-price {
    color: #64748b;
    text-decoration: line-through;
}
.selling-price {
    color: #38bdf8;
    font-weight: 700;
}
.shop-product-qty {
    color: #334155;
    margin-bottom: 4px;
}
.shop-product-shop {
    color: #0f172a;
    font-size: 0.98em;
    margin-bottom: 8px;
}
.shop-product-link {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 18px;
    background: #0ea5e9;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.shop-product-link:hover {
    background: #38bdf8;
}
/* ================= AUTH SECTION (LOGIN/SIGNUP) ================= */
.auth-section {
    background: linear-gradient(90deg, #e0f2fe 0%, #f1f5f9 100%);
    padding: 48px 0 32px 0;
    border-bottom: 1px solid #e2e8f0;
}
.auth-container {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(56,189,248,0.10);
    padding: 36px 32px 32px 32px;
    text-align: center;
    position: relative;
}
.auth-options h2 {
    font-size: 2rem;
    color: #0ea5e9;
    margin-bottom: 10px;
    font-weight: 700;
}
.auth-options p {
    color: #64748b;
    margin-bottom: 24px;
}
.auth-btn-group {
    display: flex;
    gap: 18px;
    justify-content: center;
}
.auth-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(56,189,248,0.07);
}
.auth-signup-btn {
    background: linear-gradient(90deg, #38bdf8 0%, #0ea5e9 100%);
    color: #fff;
}
.auth-signup-btn:hover {
    background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 100%);
}
.auth-login-btn {
    background: #fff;
    color: #0ea5e9;
    border: 2px solid #0ea5e9;
}
.auth-login-btn:hover {
    background: #0ea5e9;
    color: #fff;
}
.auth-welcome {
    text-align: center;
    margin-bottom: 0;
}
.auth-welcome h2 {
    color: #0ea5e9;
    font-size: 1.5rem;
    margin-bottom: 18px;
}
.auth-logout-btn {
    background: #f87171;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}
.auth-logout-btn:hover {
    background: #dc2626;
}
/* Modal Styles */
.auth-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30,41,59,0.18);
}
.auth-modal-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(56,189,248,0.18);
    padding: 0;
    position: relative;
    width: 100%;
    max-width: 400px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.auth-close {
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
}
.auth-close:hover {
    color: #0ea5e9;
}
.auth-iframe {
    width: 100%;
    height: 480px;
    border: none;
    border-radius: 0 0 16px 16px;
}
/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f4f6f9;
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-touch-callout: none;
}

/* Ensure text input is selectable and touch-friendly */
input, textarea, button, a {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: none;
}

/* Better touch interaction */
button, a {
    -webkit-user-select: none;
    user-select: none;
}

/* ================= NAVBAR ================= */
.navbar {
    background: #0f172a;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
}

.navbar-logo img {
    width: 40px;
    margin-right: 10px;
    border-radius: 20px;
}

.company-name {
    font-weight: bold;
    font-size: 22px;
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.cart-count {
    background: #38bdf8;
    color: black;
    padding: 3px 8px;
    border-radius: 50%;
    font-size: 12px;
    margin-left: 5px;
}

/* ================= SHOP ================= */
.shop-section {
    padding: 60px 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ================= PRODUCT GRID MOTION ANIMATIONS ================= */
@keyframes shopHeadingFadeDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shop-heading {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #0f172a;
    font-weight: 700;
    animation: shopHeadingFadeDown 600ms ease-out;
    animation-play-state: paused;
}

.shop-heading.animate {
    animation-play-state: running;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

/* ================= PRODUCT CARD ================= */
.product-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 350ms ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 18px 45px rgba(14, 165, 233, 0.15);
    border-color: #38bdf8;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.product-img-container {
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
    height: 200px;
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.product-img-container img:hover {
    transform: scale(1.08);
}

.product-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #0f172a;
    transition: color 300ms ease;
}

.product-card:hover h3 {
    color: #0ea5e9;
}

.old {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 5px;
}

.price {
    color: #0ea5e9;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* ================= BUTTONS & TOUCH TARGETS ================= */
button {
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

.add-cart {
    background: linear-gradient(45deg, #0ea5e9, #0284c7);
    border: none;
    padding: 10px 15px;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    font-weight: 600;
    transition: all 300ms ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

.add-cart:active {
    transform: translateY(-1px);
}

.item-count-badge {
    background: white;
    color: #0ea5e9;
    padding: 3px 7px;
    border-radius: 50%;
    margin-left: 5px;
    font-size: 12px;
    font-weight: bold;
}

/* GALLERY */
.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 220ms ease, visibility 220ms ease;
    z-index: 4000;
}

.gallery-modal.open {
    visibility: visible;
    opacity: 1;
}

.gallery-inner {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 920px;
    max-height: 90vh;
    overflow: auto;
    padding: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: translateY(18px) scale(0.98);
    transition: transform 260ms ease, opacity 220ms ease;
    opacity: 0;
}

.gallery-modal.open .gallery-inner {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.gallery-modal img {
    max-width: 100%;
    max-height: 60vh;
    display: block;
    margin: 12px auto;
    object-fit: contain;
}

.gallery-controls button {
    padding: 10px 20px;
    margin: 10px;
    transition: all 300ms ease;
    background: #0ea5e9;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    min-width: 80px;
}

.gallery-controls button:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

.gallery-controls button:active {
    transform: translateY(0);
}

.gallery-count {
    display: inline-block;
    background: #0ea5e9;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-size: 14px;
    vertical-align: middle;
}

#closeGallery {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* ================= CART SIDEBAR ================= */
.cart-popup {
    position: fixed;
    right: -400px;
    top: 0;
    width: 350px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    padding: 20px;
    transition: 0.4s;
    overflow-y: auto;
    z-index: 2000;
}

.cart-popup.active {
    right: 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-qty button {
    background: #0ea5e9;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 250ms ease;
    font-weight: 600;
}

.cart-qty button:hover {
    background: #0284c7;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}

.remove-item {
    background: red;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 250ms ease;
    font-weight: 600;
}

.remove-item:hover {
    background: darkred;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(220, 20, 20, 0.3);
}

#checkoutBtn {
    width: 100%;
    padding: 10px;
    background: #0ea5e9;
    color: white;
    border: none;
    border-radius: 6px;
    margin-top: 15px;
    transition: all 300ms ease;
    font-weight: 600;
    cursor: pointer;
}

#checkoutBtn:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

#closeCart {
    width: 100%;
    padding: 10px;
    transition: all 300ms ease;
    cursor: pointer;
    font-weight: 600;
    border-radius: 6px;
    border: 2px solid #0ea5e9;
    background: transparent;
    color: #0ea5e9;
}

#closeCart:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: #0284c7;
    color: #0284c7;
    transform: translateY(-2px);
    margin-top: 10px;
}


/* ================= CHECKOUT MODAL ================= */
#paymentModal {
    /* hidden by default; add .open to display */
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.6);
    z-index: 5000;
    padding: 20px;
}

#paymentModal.open {
    display: flex;
    justify-content: center;
    align-items: center;
}

#checkoutForm {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    width: 420px;
    max-width: 96%;
    padding: 22px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 30px 60px rgba(2, 6, 23, 0.18);
    border: 1px solid rgba(15, 20, 40, 0.04);
}

#checkoutForm h2 {
    font-size: 20px;
    color: #0f3460;
    margin-bottom: 4px;
}

#checkoutForm label {
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 6px;
}

#checkoutForm input,
#checkoutForm select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e6e9ef;
    background: #ffffff;
    outline: none;
    transition: box-shadow 160ms ease, border-color 160ms ease;
}

#checkoutForm input:focus,
#checkoutForm select:focus {
    box-shadow: 0 8px 24px rgba(14,165,233,0.12);
    border-color: #0ea5e9;
}

.payment-btns {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.confirm-btn {
    flex: 1;
    background: linear-gradient(90deg,#0ea5e9,#0284c7);
    color: white;
    border: none;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}

.confirm-btn:hover { opacity: 0.95; transform: translateY(-1px); }

.cancel-btn {
    flex: 1;
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #e6e9ef;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

.cancel-btn:hover { background: #eef2f7; }

@media (max-width: 520px) {
    #checkoutForm { width: 98%; padding: 16px; }
    .payment-btns { flex-direction: column; }
}

/* ================= SUCCESS POPUP ================= */
#successPopup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.success-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

.success-content button {
    margin-top: 20px;
    padding: 10px 20px;
    background: #0ea5e9;
    border: none;
    color: white;
    border-radius: 8px;
    transition: all 300ms ease;
    cursor: pointer;
    font-weight: 600;
    min-width: 150px;
}

.success-content button:hover {
    background: #0284c7;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4);
}

/* ================= PRODUCT GRID MOTION ANIMATIONS ================= */
@keyframes productRowSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-grid .product-card {
    opacity: 0;
    animation: productRowSlideUp 600ms ease-out forwards;
    animation-play-state: paused;
}

/* Row-based staggered delays for responsive grid */
/* Row 1 (products 1-4) */
.product-grid .product-card:nth-child(1) { animation-delay: 50ms; }
.product-grid .product-card:nth-child(2) { animation-delay: 100ms; }
.product-grid .product-card:nth-child(3) { animation-delay: 150ms; }
.product-grid .product-card:nth-child(4) { animation-delay: 200ms; }

/* Row 2 (products 5-8) */
.product-grid .product-card:nth-child(5) { animation-delay: 250ms; }
.product-grid .product-card:nth-child(6) { animation-delay: 300ms; }
.product-grid .product-card:nth-child(7) { animation-delay: 350ms; }
.product-grid .product-card:nth-child(8) { animation-delay: 400ms; }

/* Row 3 (products 9-12) */
.product-grid .product-card:nth-child(9) { animation-delay: 450ms; }
.product-grid .product-card:nth-child(10) { animation-delay: 500ms; }
.product-grid .product-card:nth-child(11) { animation-delay: 550ms; }
.product-grid .product-card:nth-child(12) { animation-delay: 600ms; }

/* ================= FOOTER ================= */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 60px 40px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section p {
    line-height: 1.8;
    color: #94a3b8;
    margin: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #38bdf8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(56, 189, 248, 0.2);
    border-radius: 50%;
    color: #38bdf8;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: #38bdf8;
    color: #0f172a;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    color: #64748b;
}

@media (max-width: 1024px) {
    .shop-section {
        padding: 50px 30px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .product-card {
        padding: 18px;
    }
}

@media (max-width: 768px) {
    .shop-section {
        padding: 40px 20px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .product-card {
        padding: 15px;
    }

    .product-img-container {
        height: 150px;
    }

    .product-card h3 {
        font-size: 14px;
    }

    .price {
        font-size: 15px;
    }

    .add-cart {
        padding: 8px 12px;
        font-size: 12px;
    }

    .shop-heading {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .cart-popup {
        width: 100%;
        right: -100%;
        max-width: 100%;
    }

    .cart-popup h2 {
        font-size: 18px;
    }

    .cart-item {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .cart-item strong {
        font-size: 13px;
    }

    .cart-total {
        font-size: 14px;
    }

    #checkoutBtn {
        padding: 10px;
        font-size: 14px;
    }

    #closeCart {
        font-size: 20px;
        top: 15px;
        right: 15px;
    }

    #checkoutForm {
        width: 95%;
        padding: 25px 20px;
    }

    #checkoutForm h2 {
        font-size: 20px;
    }

    #checkoutForm input,
    #checkoutForm select {
        padding: 10px;
        font-size: 13px;
    }

    .payment-btns {
        gap: 10px;
    }

    .confirm-btn,
    .cancel-btn {
        padding: 10px;
        font-size: 13px;
    }

    .gallery-modal {
        padding-top: 40px;
    }

    #closeGallery {
        font-size: 28px;
        right: 15px;
        top: 15px;
    }

    .gallery-modal img {
        max-width: 95%;
        max-height: 65vh;
    }

    #galleryTitle {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .gallery-controls {
        gap: 8px;
        margin-top: 20px;
    }

    .gallery-controls button {
        padding: 8px 14px;
        font-size: 11px;
    }

    .gallery-count {
        padding: 3px 8px;
        font-size: 11px;
    }

    .success-content {
        padding: 30px 20px;
        width: 95%;
    }

    .success-content h2 {
        font-size: 22px;
    }

    .success-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .shop-section {
        padding: 25px 12px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 10px;
    }

    .product-card {
        padding: 10px;
    }

    .product-img-container {
        height: 110px;
        margin-bottom: 8px;
    }

    .product-card h3 {
        font-size: 11px;
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .old,
    .price {
        font-size: 11px;
    }

    .price {
        margin-bottom: 8px;
    }

    .add-cart {
        padding: 6px 10px;
        font-size: 10px;
        width: 100%;
    }

    .shop-heading {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .cart-popup {
        padding: 15px 12px;
        width: 100%;
        right: -100%;
    }

    .cart-popup h2 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .cart-item {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .cart-item strong {
        font-size: 12px;
    }

    .cart-item p {
        font-size: 11px;
    }

    .cart-qty {
        gap: 3px;
    }

    .cart-qty button {
        padding: 3px 5px;
        font-size: 10px;
        width: 25px;
        height: 25px;
    }

    .cart-item button:last-child {
        padding: 3px 5px;
        font-size: 10px;
    }

    .cart-total {
        font-size: 13px;
        margin-top: 10px;
    }

    #checkoutBtn,
    #closeCart {
        padding: 10px;
        font-size: 12px;
    }

    #closeCart {
        font-size: 18px;
        top: 12px;
        right: 12px;
    }

    #checkoutForm {
        width: 98%;
        padding: 18px 12px;
    }

    #checkoutForm h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    #checkoutForm input,
    #checkoutForm select {
        padding: 9px;
        font-size: 11px;
        margin-bottom: 8px;
    }

    #checkoutForm label {
        font-size: 11px;
    }

    .payment-btns {
        flex-direction: column;
        gap: 6px;
        margin-top: 8px;
    }

    .confirm-btn,
    .cancel-btn {
        padding: 9px;
        font-size: 11px;
    }

    .gallery-modal {
        padding: 30px 12px;
    }

    #closeGallery {
        font-size: 24px;
        right: 12px;
        top: 12px;
    }

    .gallery-modal img {
        max-width: 90%;
        max-height: 50vh;
    }

    #galleryTitle {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .gallery-controls {
        gap: 6px;
        margin-top: 15px;
        flex-wrap: wrap;
    }

    .gallery-controls button {
        padding: 6px 10px;
        font-size: 10px;
    }

    .gallery-count {
        padding: 2px 6px;
        font-size: 10px;
    }

    .success-content {
        padding: 20px 12px;
        width: 98%;
    }

    .success-content h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .success-content p {
        font-size: 12px;
    }

    .close-success {
        padding: 8px 14px;
        font-size: 11px;
        margin-top: 10px;
    }
}