/* Shop / product cards / cart badge — IT Digital Agency */
/* Theme tokens (match it-digital-agency.html) */
:root {
    --g: #22c55e;
    --g-light: #4ade80;
    --g-dark: #16a34a;
    --navy: #0f172a;
    --navy-2: #1e293b;
    --orange: #f97316;
    --grad: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.15);
    --shadow-green: 0 8px 30px rgba(34, 197, 94, 0.3);
    --r: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-full: 9999px;
    --bg-body: #ffffff;
    --bg-section: #f8fafc;
    --surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-col: rgba(34, 197, 94, 0.12);
    --input-bg: #ffffff;
    --input-brd: #e2e8f0;
    --card-shd: 0 2px 8px rgba(0, 0, 0, 0.05);
}
[data-theme='dark'] {
    --bg-body: #0b1120;
    --bg-section: #111827;
    --surface: #1a2332;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border-col: rgba(34, 197, 94, 0.18);
    --input-bg: #0b1120;
    --input-brd: #334155;
    --card-shd: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.shop-inner-page {
    font-family: 'Noto Sans Bengali', 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background: var(--bg-body);
    min-height: 100vh;
    margin: 0;
}
.shop-inner-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.shop-inner-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(11, 17, 32, 0.96);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(34, 197, 94, 0.08);
}
.shop-inner-header .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.shop-inner-header nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: var(--r-full);
    transition: all 0.25s;
    display: block;
    text-decoration: none;
}
.shop-inner-header nav a:hover {
    color: #fff;
    background: rgba(34, 197, 94, 0.15);
}
.shop-inner-header .nav-cta {
    background: var(--g) !important;
    color: #fff !important;
    padding: 8px 20px !important;
    font-weight: 700 !important;
}
.shop-inner-header .logo img {
    height: 80px;
    width: auto;
    max-width: min(340px, 54vw);
    object-fit: contain;
    border-radius: 12px;
    filter:
        drop-shadow(0 0 8px rgba(255, 255, 255, 1))
        drop-shadow(0 0 18px rgba(255, 255, 255, 0.55))
        drop-shadow(0 0 12px rgba(34, 197, 94, 0.4))
        drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
    transition: filter 0.3s, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.shop-inner-header .logo:hover img {
    transform: translateY(-2px) scale(1.04);
    filter:
        drop-shadow(0 0 10px rgba(255, 255, 255, 1))
        drop-shadow(0 0 26px rgba(255, 255, 255, 0.65))
        drop-shadow(0 0 20px rgba(34, 197, 94, 0.55))
        drop-shadow(0 10px 24px rgba(0, 0, 0, 0.4));
}

.shop-inner-header .hdr-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.shop-inner-header .lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    padding: 6px 13px;
    border-radius: var(--r-full);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.4px;
    transition: all 0.25s;
    white-space: nowrap;
}
.shop-inner-header .lang-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
}
.shop-inner-header .theme-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}
.shop-inner-header .theme-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
}

html.theme-transition,
html.theme-transition * {
    transition:
        background-color 0.35s ease,
        color 0.3s ease,
        border-color 0.3s ease !important;
}

.hdr-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.25s, border-color 0.25s;
}
.hdr-cart:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.45);
    color: #fff;
}
.cart-badge-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.45);
}
.cart-badge-count:empty {
    display: none;
}

.srv-cat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 32px;
}
.cat-filter-btn {
    border: 1px solid var(--border-col);
    background: var(--surface);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}
.cat-filter-btn:hover {
    border-color: rgba(34, 197, 94, 0.45);
    color: var(--g-dark);
}
.cat-filter-btn.active {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.srv-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
}

.product-card {
    background: var(--surface);
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--border-col);
    box-shadow: var(--card-shd);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(34, 197, 94, 0.22);
}

.product-card-img {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-section);
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.product-card:hover .product-card-img img {
    transform: scale(1.04);
}

.product-card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.product-card-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.45;
    min-height: 2.9em;
}

.product-meta {
    font-size: 13px;
    color: var(--g-dark);
    font-weight: 600;
}

.product-prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.price-current {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--g-dark);
}
.price-old {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

.product-desc ul {
    margin: 8px 0 0;
    padding-left: 1.1em;
}
.product-desc li {
    margin-bottom: 4px;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.btn-atc,
.btn-buy {
    padding: 12px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.25s;
    text-align: center;
    white-space: nowrap;
}
.btn-atc {
    background: var(--surface);
    border: 2px solid rgba(34, 197, 94, 0.45);
    color: var(--g-dark);
}
.btn-atc:hover {
    background: rgba(34, 197, 94, 0.1);
}
.btn-buy {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}
.btn-buy:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

/* ——— Cart / checkout pages ——— */
.shop-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-body);
}
.shop-main {
    flex: 1;
    padding: 100px 0 80px;
}
.shop-card {
    background: var(--surface);
    border: 1px solid var(--border-col);
    border-radius: var(--r-xl);
    padding: 28px;
    box-shadow: var(--card-shd);
    margin-bottom: 20px;
}
.shop-card h1 {
    font-size: 26px;
    margin-bottom: 8px;
    color: var(--text-main);
}
.shop-muted {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.cart-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-col);
}
.cart-row:last-child {
    border-bottom: none;
}
.cart-thumb {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-section);
}
.cart-row-body {
    flex: 1;
    min-width: 0;
}
.cart-row-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 6px;
}
.cart-row-price {
    font-weight: 700;
    color: var(--g-dark);
}
.cart-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.cart-qty button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-col);
    background: var(--bg-section);
    cursor: pointer;
    font-weight: 700;
}
.cart-qty input {
    width: 48px;
    text-align: center;
    border: 1px solid var(--input-brd);
    border-radius: 8px;
    padding: 6px;
    background: var(--input-bg);
    color: var(--text-main);
}
.cart-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

.cart-summary {
    padding-top: 20px;
    border-top: 2px dashed var(--border-col);
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}
.cart-summary-row.total {
    font-size: 20px;
    font-weight: 800;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-col);
}

.shop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.25s;
}
.shop-btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
}
.shop-btn-primary:hover {
    filter: brightness(1.06);
}
.shop-btn-outline {
    background: transparent;
    border: 2px solid rgba(34, 197, 94, 0.45);
    color: var(--g-dark);
}
.shop-btn-outline:hover {
    background: rgba(34, 197, 94, 0.08);
}

.cart-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}
.cart-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.form-grid {
    display: grid;
    gap: 16px;
}
.form-grid label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}
.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--input-brd);
    background: var(--input-bg);
    color: var(--text-main);
    font-family: inherit;
    font-size: 15px;
}
.form-grid textarea {
    min-height: 100px;
    resize: vertical;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    .shop-inner-header .logo img {
        height: 70px;
        max-width: min(300px, 52vw);
    }
}

.order-box {
    font-size: 14px;
}
.order-box .cart-row {
    flex-wrap: wrap;
}

.pay-detail-box {
    margin-top: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-col);
    background: var(--bg-section);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-main);
    white-space: pre-line;
}
.pay-instruction {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.06);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-main);
}
