/* =====================================================
   shop.css — DukaSmart Marketplace · Premium Upgrade
   ===================================================== */


/* =====================================================
   HERO
   ===================================================== */
.shop-hero {
    position: relative;
    height: 300px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 0;
    background-size: cover;
    background-position: center;
    background-attachment: local;
}

/* Multi-stop overlay for real depth */
.hero-overlay {
    position: absolute;
    inset: 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
    border-radius: inherit;
    background: linear-gradient(
        to top,
        rgba(10, 16, 30, 0.95) 0%,
        rgba(10, 16, 30, 0.55) 50%,
        rgba(10, 16, 30, 0.15) 100%
    );
}

.shop-hero-content {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px 28px;
    color: #ffffff;
}


/* =====================================================
   SHOP HEADER (logo + name)
   ===================================================== */
.shop-header {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #fff;
}

/* Logo — glass ring effect */
.shop-logo {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    border: 2.5px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 0 0 5px rgba(255, 255, 255, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.35);
    background: #fff;
    transition: transform 0.25s ease;
}

.shop-logo:hover {
    transform: scale(1.04);
}

.shop-logo.fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-green);
    color: #ffffff;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.5px;
}

/* Shop name & location */
.shop-text h1 {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.shop-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 3px 10px 3px 8px;
    backdrop-filter: blur(6px);
}

.shop-location i {
    font-size: 0.75rem;
    color: var(--brand-green);
}


/* =====================================================
   STICKY HEADER — Frosted glass
   ===================================================== */
.shop-sticky {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.sticky-left strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    letter-spacing: -0.2px;
}

.sticky-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* =====================================================
   BUTTONS — Premium style
   ===================================================== */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.825rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--brand-green);
    color: #ffffff;
    box-shadow: 0 3px 12px rgba(var(--brand-green-rgb, 22, 163, 74), 0.3);
}

.btn-primary:hover {
    background: var(--brand-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--brand-green-rgb, 22, 163, 74), 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-secondary {
    background: var(--surface-card);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--surface-soft);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

/* Small pill variants for sticky */
.btn-primary.small,
.btn-secondary.small {
    padding: 6px 14px;
    font-size: 0.75rem;
    border-radius: 999px;
}


/* =====================================================
   SHOP INFO CARD
   ===================================================== */
.shop-info-card {
    padding: 24px 24px 12px;
}

.shop-info-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

/* About section */
.shop-description {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Subtle left accent strip */
.shop-description::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--brand-green);
    border-radius: 999px 0 0 999px;
}

.shop-description h3 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.shop-description p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.68;
}

/* Contacts */
.shop-contacts {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.shop-contacts p {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
}

.shop-contacts p strong {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    font-weight: 600;
}


/* =====================================================
   PRODUCTS SECTION
   ===================================================== */
.products-card {
    padding: 20px 24px 32px;
}

.products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.products-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--text-primary, #0f172a);
    position: relative;
}

/* Green underline accent on heading */
.products-header h2::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 32px;
    height: 2.5px;
    background: var(--brand-green);
    border-radius: 999px;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
    gap: 18px;
}


/* =====================================================
   PRODUCT CARD — Premium
   ===================================================== */
.product-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: var(--radius-md);
    background: var(--surface-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: var(--brand-green);
}

/* Image wrapper */
.product-img {
    overflow: hidden;
    position: relative;
    background: var(--surface-soft);
}

.product-img img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Info block */
.product-info {
    padding: 13px 14px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-info h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-green);
    letter-spacing: -0.2px;
}

/* View button — sits at card bottom */
.product-card .btn-primary {
    margin: 0 14px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    padding: 9px 14px;
    letter-spacing: 0.01em;
}


/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 52px 24px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.875rem;
    background: var(--surface-soft);
    letter-spacing: 0.01em;
}


/* =====================================================
   FLOATING WHATSAPP
   ===================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 54px;
    height: 54px;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 22px;
    box-shadow:
        0 4px 16px rgba(37, 211, 102, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 100;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: waPulse 2.5s ease-in-out infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow:
        0 8px 28px rgba(37, 211, 102, 0.55),
        0 2px 8px rgba(0, 0, 0, 0.15);
    animation: none;
}

@keyframes waPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0,0,0,0.15); }
    50%       { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.7),  0 2px 6px rgba(0,0,0,0.15); }
}


/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-hero {
        height: 220px;
        border-radius: var(--radius-lg, 14px);
    }

    .shop-hero-content {
        padding: 0 18px 22px;
    }

    .shop-logo {
        width: 58px;
        height: 58px;
    }

    .shop-text h1 {
        font-size: 1.3rem;
    }

    .shop-info-inner {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .shop-sticky {
        padding: 10px 16px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .sticky-actions .btn-primary,
    .sticky-actions .btn-secondary {
        width: auto;
    }
}

@media (max-width: 480px) {
    .shop-hero {
        height: 185px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-img img {
        height: 140px;
    }

    .floating-whatsapp {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .shop-info-card,
    .products-card {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 360px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}