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

:root {
    --shop-gradient: linear-gradient(90deg, #de0e0e, #fc8823);
    --shop-dark: #1a1a1a;
    --shop-muted: #6b7280;
    --shop-border: #ececec;
    --shop-bg: #faf9f7;
    --shop-radius: 14px;
    --shop-radius-sm: 8px;
    --shop-shadow: 0 4px 20px rgba(20, 20, 20, 0.06);
    --shop-shadow-hover: 0 14px 32px rgba(20, 20, 20, 0.12);
}

.shop-page-header,
.shop-sidebar,
.shop-grid,
.pdp-title,
.pdp-price,
.pdp-brand,
.pdp-specs-card,
.pdp-desc-card,
.pdp-similar-heading {
    font-family: 'Poppins', sans-serif;
}

.shop-page-header {
    position: relative;
    background: linear-gradient(120deg, #ffcf9b 0%, #ffe4c2 100%);
    color: #7a3e12;
    padding: 64px 20px 84px;
    text-align: center;
    margin-bottom: 36px;
    overflow: hidden;
    isolation: isolate;
}

.shop-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.6) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
    opacity: 0.5;
    z-index: -1;
}

.shop-page-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 40px;
    background: #fff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: scaleX(1.5);
    z-index: -1;
}

.shop-page-header-blob {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.shop-page-header-blob.b1 {
    width: 220px;
    height: 220px;
    top: -90px;
    left: -60px;
    background: radial-gradient(circle, rgba(222, 14, 14, 0.16) 0%, transparent 70%);
}

.shop-page-header-blob.b2 {
    width: 260px;
    height: 260px;
    bottom: -140px;
    right: -60px;
    background: radial-gradient(circle, rgba(222, 14, 14, 0.14) 0%, transparent 70%);
}

.shop-page-header-eyebrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.55);
    color: #b45309;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.shop-page-header h1 {
    position: relative;
    font-size: 36px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
    color: #7a3e12;
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.5);
}

.shop-page-header p {
    position: relative;
    color: #8a5a2e;
    margin-top: 10px;
    font-size: 15px;
}

.shop-page-header-cart {
    position: absolute;
    top: 18px;
    right: 24px;
    z-index: 2;
}

.shop-page-header-cart .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #b45309;
    font-weight: 600;
    border-radius: 999px;
    padding: 9px 18px;
    box-shadow: 0 6px 16px rgba(122, 62, 18, 0.18);
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shop-page-header-cart .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(122, 62, 18, 0.24);
}

/* Hero banner (image) */
.shop-hero-wrap {
    margin: 0 0 40px;
    padding: 0;
}

.shop-hero {
    position: relative;
}

.shop-hero-img {
    width: 100%;
    height: auto;
    max-height: 590px;
    display: block;
    object-fit: cover;
    object-position: top;
    border-radius: 0;
    box-shadow: var(--shop-shadow);
}

@media (max-width: 767px) {
    .shop-hero-img {
        max-height: 280px;
    }
}

.shop-sidebar .card {
    border: none;
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow);
}

.shop-sidebar .list-group-item {
    border: none;
    padding: 9px 0;
}

.shop-sidebar h6 {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--shop-muted);
    margin-top: 6px;
}

.shop-sidebar .list-group-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.shop-sidebar .list-group-item a:hover,
.shop-sidebar .list-group-item a.active {
    color: #de0e0e;
    font-weight: 600;
    padding-left: 4px;
}

.shop-sidebar input.form-control {
    border-radius: var(--shop-radius-sm);
    border: 1px solid var(--shop-border);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
}

.shop-card {
    background: #fff;
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--shop-border);
}

.shop-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shop-shadow-hover);
}

.shop-card-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: linear-gradient(180deg, #fbfbfb, #f3f3f3);
    padding: 16px;
    transition: transform 0.3s ease;
}

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

.shop-card-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 13px;
}

.shop-card-content {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--shop-border);
}

.shop-card-content h3 {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--shop-dark);
    margin-bottom: 6px;
    line-height: 1.35;
}

.shop-card-content .shop-price {
    font-weight: 700;
    color: var(--shop-dark);
    font-size: 17px;
    margin: 4px 0 14px;
}

.shop-card-content .shop-price .compare-at {
    font-weight: 400;
    color: #aaa;
    text-decoration: line-through;
    margin-left: 8px;
    font-size: 13px;
}

.shop-btn {
    background: var(--shop-gradient);
    color: #fff;
    border-radius: var(--shop-radius-sm);
    padding: 9px 18px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-top: auto;
    box-shadow: 0 6px 16px rgba(222, 14, 14, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    border: none;
}

.shop-btn:hover {
    color: #fff;
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(222, 14, 14, 0.3);
}

.shop-detail-gallery img {
    width: 100%;
    border-radius: var(--shop-radius);
    background: #f8f8f8;
    object-fit: contain;
    max-height: 420px;
}

.shop-detail-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.shop-detail-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #f8f8f8;
    border-radius: var(--shop-radius-sm);
    border: 1px solid var(--shop-border);
    transition: border-color 0.15s ease;
}

.shop-detail-thumbs img:hover {
    border-color: #fc8823;
}

.shop-empty {
    padding: 70px 20px;
    text-align: center;
    color: var(--shop-muted);
    width: 100%;
    font-size: 15px;
}

.shop-empty::before {
    content: '🔍';
    display: block;
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Cart / Checkout shared components */

.shop-panel {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow);
    padding: 24px;
    margin-bottom: 22px;
}

.shop-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.shop-panel h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--shop-muted);
    margin: 0;
}

.shop-panel h5 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--shop-muted);
    margin-bottom: 12px;
}

.shop-radio-option {
    position: relative;
    border: 1.5px solid var(--shop-border);
    border-radius: var(--shop-radius-sm);
    padding: 14px 16px 14px 42px;
    margin-bottom: 10px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.shop-radio-option:has(input:checked) {
    border-color: #fc8823;
    background: #fff8f2;
}

.shop-radio-option:last-child {
    margin-bottom: 0;
}

.shop-radio-option .form-check-input {
    position: absolute;
    left: 16px;
    top: 16px;
    margin: 0;
}

.shop-radio-option .form-check-label {
    width: 100%;
    cursor: pointer;
}

.shop-summary-card {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow);
    padding: 24px;
    position: sticky;
    top: 20px;
}

.shop-summary-card h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--shop-muted);
    margin-bottom: 16px;
}

.shop-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
}

.shop-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    color: var(--shop-dark);
    border-top: 1px solid var(--shop-border);
    margin-top: 8px;
    padding-top: 14px;
}

.shop-table-card {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow);
    overflow: hidden;
    margin-bottom: 22px;
}

.shop-table-card table {
    margin-bottom: 0;
}

.shop-table-card thead th {
    background: var(--shop-bg);
    border-bottom: none;
    color: var(--shop-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    padding: 14px 16px;
}

.shop-table-card tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-color: var(--shop-border);
}

.shop-line-item-thumb {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: linear-gradient(180deg, #fbfbfb, #f3f3f3);
    border-radius: 10px;
    border: 1px solid var(--shop-border);
}

.shop-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: var(--shop-radius-sm);
    overflow: hidden;
}

.shop-qty-stepper input {
    width: 44px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-weight: 600;
}

.shop-qty-stepper button {
    width: 34px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    transition: background 0.15s ease;
}

.shop-qty-stepper button:hover {
    background: #ececec;
}

.shop-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--shop-radius-sm);
    border: 1px solid var(--shop-border);
    color: #c62828;
    background: #fff;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.shop-icon-link:hover {
    background: #fdecea;
    border-color: #c62828;
    color: #c62828;
}

.shop-order-confirm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}
