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

:root {
    --primary-color: #000000;
    --bg-color: #ffffff;
    --accent-color: #f8f8f8;
    --text-color: #1a1a1a;
    --muted-color: #767676;
    --border-color: #e5e5e5;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

/* ═══════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--muted-color);
}

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

.nav-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

@media (max-width: 480px) {
    .nav-icons {
        gap: 10px;
    }

    .nav-icons .cart-total {
        display: none;
        /* Hide price text on small screens — icon alone is enough */
    }

    .search-form {
        display: none;
        /* Hide search on very small screens — use mobile menu instead */
    }

    .logo {
        font-size: 20px;
    }

    .nav-wrapper {
        gap: 8px;
    }
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary-color);
    padding: 5px;
}

/* Mobile Nav Drawer */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: #ffffff;
    z-index: 2001;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px;
    display: none;
    /* Hide by default to prevent flow issues */
    flex-direction: column;
}

.mobile-nav.active {
    display: flex;
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-menu-close {
    background: var(--accent-color);
    border: none;
    font-size: 28px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-nav-links hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 10px 0;
}

.mobile-categories h4 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--muted-color);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.mobile-categories a {
    display: block;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    border-radius: 20px;
    background: var(--accent-color);
}

.search-form input {
    border: none;
    outline: none;
    font-size: 11px;
    padding: 2px 5px;
    width: 100px;
    background: transparent;
    font-family: inherit;
}

.search-form button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted-color);
    font-size: 12px;
}

.search-form button:hover {
    color: var(--primary-color);
}

.search-form input {
    width: 80px;
}

.search-form {
    padding: 5px 10px;
}

/* ═══════════════════════════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════════════════════════ */

.hero-slider {
    position: relative;
    height: 80vh;
    width: 100%;
    overflow: hidden;
}

.slide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    background: rgba(255, 255, 255, 0.8);
    padding: 40px;
    margin-left: 10%;
    max-width: 500px;
    border-radius: 4px;
    position: relative;
    z-index: 3;
}

.slide-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.btn-black {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 15px 35px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    margin-top: 20px;
}

/* ═══════════════════════════════════════════════════════
   CATEGORY GRID (Shop by Category)
   ═══════════════════════════════════════════════════════ */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 60px 0;
}

@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.category-card {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--accent-color);
    border-radius: 4px;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.category-overlay span {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
}

.category-overlay .arrow {
    font-size: 20px;
}

/* ═══════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════ */

.home-category-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.section-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.view-all {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--muted-color);
    letter-spacing: 1px;
}

.view-all:hover {
    color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

.product-card {
    transition: 0.3s;
}

.product-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--accent-color);
    margin-bottom: 15px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-info p {
    color: var(--muted-color);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */

footer {
    background: var(--accent-color);
    padding: 80px 0;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p,
.footer-col a {
    color: var(--muted-color);
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

/* ═══════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE
   ═══════════════════════════════════════════════════════ */

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-main img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: var(--accent-color);
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.thumb {
    width: 100px;
    aspect-ratio: 3/4;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.3s;
}

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

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-meta h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1.2;
}

.product-price {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}

.variant-section {
    margin-bottom: 25px;
}

.variant-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Size/Color Buttons */
.variant-btn {
    border: 1px solid var(--border-color);
    background: white;
    padding: 12px 20px;
    min-width: 65px;
    min-height: 48px;
    /* Finger-friendly touch target */
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.variant-btn:hover {
    border-color: var(--primary-color);
}

.variant-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.shake-hint {
    animation: shake 0.5s ease;
}

/* Color Swatches (if used as dots) */
.color-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: 0.3s;
}

.color-dot.active {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Quantity Selector */
.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    width: fit-content;
    margin-bottom: 30px;
}

.qty-btn {
    padding: 10px 15px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 18px;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    font-family: inherit;
    font-weight: 600;
}

.btn-add-cart {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-add-cart:hover {
    opacity: 0.9;
}

.product-description {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--muted-color);
}

/* ═══════════════════════════════════════════════════════
   CART STYLES & RESPONSIVE
   ═══════════════════════════════════════════════════════ */

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.cart-table thead tr {
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.cart-table th {
    padding: 20px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted-color);
}

.cart-item {
    border-bottom: 1px solid var(--border-color);
}

.cart-item td {
    padding: 25px 0;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-product img {
    width: 80px;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: var(--accent-color);
}

.product-name {
    font-weight: 600;
}

.cart-details {
    color: var(--muted-color);
    font-size: 14px;
}

.cart-details span {
    display: block;
}

.cart-total-cell {
    font-weight: 600;
}

.cart-remove {
    text-align: right;
}

.remove-btn {
    color: #ef5350;
    font-size: 18px;
}

.cart-summary {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.summary-info {
    text-align: right;
}

.summary-label {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--muted-color);
    font-weight: 600;
    display: block;
}

.summary-total {
    font-size: 32px;
    font-weight: 800;
    margin-top: 5px;
}

.btn-checkout {
    padding: 20px 60px;
}

/* ═══════════════════════════════════════════════════════
   ORDER SUCCESS PAGE
   ═══════════════════════════════════════════════════════ */

.success-page {
    max-width: 960px;
    padding-top: 60px;
    padding-bottom: 80px;
}

.success-header {
    text-align: center;
    margin-bottom: 50px;
}

.success-check-icon {
    margin-bottom: 24px;
}

.success-check-icon i {
    font-size: 38px;
    color: var(--primary-color);
    padding: 22px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

.success-title {
    font-size: 42px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.success-subtitle {
    color: var(--muted-color);
    font-size: 15px;
}

/* Two-column layout */
.success-wrapper {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 50px;
    align-items: start;
}

/* Order card (left) */
.success-order-card {
    background: var(--accent-color);
    padding: 40px;
    border-radius: 4px;
}

.success-order-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.text-right {
    text-align: right;
}

.meta-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted-color);
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.meta-value {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

/* Item rows */
.success-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.success-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.success-item-img {
    width: 50px;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.success-item-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.success-item-variant {
    font-size: 11px;
    color: var(--muted-color);
    display: block;
}

.success-item-right {
    text-align: right;
    flex-shrink: 0;
}

.success-item-total {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.success-item-qty {
    font-size: 11px;
    color: var(--muted-color);
}

/* Totals */
.success-totals {
    margin-top: 28px;
}

.success-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
}

.muted {
    color: var(--muted-color);
}

.fw-600 {
    font-weight: 600;
}

.free-badge {
    font-weight: 600;
    color: #2e7d32;
    text-transform: uppercase;
}

.success-grand-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--primary-color);
    font-weight: 800;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar (right) */
.sidebar-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 18px;
}

.shipping-details {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-color);
}

.shipping-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.shipping-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-color);
    margin-top: 10px;
    font-size: 13px;
}

.success-shipping {
    margin-bottom: 36px;
}

/* Action buttons */
.success-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.success-btn {
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 18px;
    text-decoration: none;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border: 1px solid #25D366;
    color: #25D366;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s;
}

.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.08);
}

.btn-whatsapp .fa-whatsapp {
    font-size: 18px;
}

.help-text {
    font-size: 12px;
    color: var(--muted-color);
    text-align: center;
    margin-top: 4px;
}

.help-link {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Community */
.success-community {
    margin-top: 50px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 28px;
}

.community-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted-color);
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 14px;
}

.community-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 18px;
    color: var(--muted-color);
}

.community-icons a {
    color: var(--muted-color);
    transition: color 0.2s;
}

.community-icons a:hover {
    color: var(--primary-color);
}

/* ═══════════════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════════════ */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
    margin-bottom: 80px;
}

.contact-info {
    padding-top: 10px;
}

.contact-intro {
    color: var(--muted-color);
    line-height: 1.7;
    margin-bottom: 40px;
    font-size: 15px;
}

.contact-detail {
    margin-bottom: 30px;
}

.contact-detail-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.contact-detail-value {
    color: var(--muted-color);
    font-size: 15px;
}

.contact-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #25D366;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-whatsapp-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.contact-whatsapp-link .fa-whatsapp {
    font-size: 20px;
}

.contact-form-card {
    background: var(--accent-color);
    padding: 40px;
    border-radius: 4px;
}

.contact-form-card .form-group {
    margin-bottom: 22px;
}

.contact-form-card textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
    resize: vertical;
    min-height: 130px;
}

.contact-form-card textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-contact-submit {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 18px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-contact-submit:hover {
    opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════
   CHECKOUT PAGE
   ═══════════════════════════════════════════════════════ */

.checkout-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    align-items: start;
    gap: 60px;
    margin-top: 40px;
}

.checkout-form-section {
    background: var(--accent-color);
    padding: 40px;
    border-radius: 4px;
}

.checkout-subtitle {
    margin-bottom: 30px;
    font-size: 20px;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-checkout-submit {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

.btn-checkout-submit:hover {
    opacity: 0.9;
}

.checkout-summary-section {
    border: 1px solid var(--border-color);
    padding: 30px;
    background: #ffffff;
}

.summary-subtitle {
    margin-bottom: 25px;
    font-size: 15px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
}

.item-name {
    color: var(--muted-color);
}

.item-price {
    font-weight: 600;
}

.summary-total-footer {
    border-top: 1px solid var(--border-color);
    margin-top: 25px;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: var(--text-color);
}

.summary-grand-total {
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    margin-top: 6px;
    font-weight: 800;
    text-transform: uppercase;
}

.shipping-cost-pending {
    color: #999;
    font-style: italic;
    font-size: 13px;
}

.total-amount {
    font-size: 22px;
}

/* Governorate Select Dropdown */
#governorateSelect {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    color: var(--text-color);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color 0.2s;
}

#governorateSelect:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

/* 📱 MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
    .cart-table thead {
        display: none;
        /* Hide headers on mobile */
    }

    .cart-item {
        display: block;
        padding: 20px 0;
    }

    .cart-item td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border: none;
        width: 100%;
    }

    .cart-item td::before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 12px;
        color: var(--muted-color);
    }

    .cart-product {
        flex-direction: row;
        justify-content: flex-start !important;
        gap: 15px;
        padding-top: 0 !important;
    }

    .cart-product::before {
        display: none;
        /* Hide label for product row as it has image/name */
    }

    .cart-summary {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        text-align: center;
    }

    .summary-info {
        text-align: center;
    }

    .btn-checkout {
        width: 100%;
    }

    .logo {
        font-size: 22px;
    }

    .section-title {
        font-size: 24px;
        margin: 40px 0 30px;
    }

    .checkout-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .checkout-form-section {
        padding: 25px;
    }

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

    /* Hero Slider Mobile */
    .hero-slider {
        height: 70vh;
    }

    .slide-content {
        margin: 0 20px;
        padding: 30px;
        text-align: center;
        width: calc(100% - 40px);
        background: rgba(255, 255, 255, 0.9);
    }

    .slide-content h2 {
        font-size: 24px;
        margin-bottom: 8px;
        line-height: 1.1;
    }

    .nav-icons {
        gap: 8px;
    }

    /* Contact Page Mobile */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form-card {
        padding: 25px;
    }

    /* Order Success Page Mobile */
    .success-page {
        padding-top: 40px;
        padding-bottom: 50px;
        overflow-x: hidden;
    }

    .success-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .success-header {
        margin-bottom: 32px;
    }

    .success-title {
        font-size: 26px;
        letter-spacing: 0;
        word-break: break-word;
    }

    .success-subtitle {
        font-size: 13px;
        word-break: break-word;
    }

    .success-order-card {
        padding: 20px 16px;
    }

    /* Stack the order number / date vertically */
    .success-order-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .text-right {
        text-align: left;
    }

    .meta-value {
        font-size: 16px;
    }

    /* Item rows: stack price below name on very small screens */
    .success-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .success-item-right {
        text-align: left;
        width: 100%;
    }

    /* Show shipping/actions above order card on mobile */
    .success-sidebar {
        order: -1;
    }
}