/* Kian Pars Shop Styles */

:root {
    --shop-gold: #ac822f;
    --shop-gold-dark: #8a6824;
    --shop-dark: #1a1a2e;
    --shop-gray: #6b7280;
    --shop-light: #f8f6f2;
    --shop-white: #ffffff;
    --shop-radius: 12px;
    --shop-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shop-shadow-hover: 0 12px 40px rgba(172, 130, 47, 0.15);
}

.shop-page {
    min-height: 60vh;
}

/* Inner shop pages sit below the fixed site header */
.shop-page:not(:has(.shop-hero)) {
    padding-top: 110px;
}

/* Hero */
.shop-hero {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 80px 0;
}

.shop-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(172, 130, 47, 0.75) 100%);
}

.shop-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--shop-white);
}

.shop-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.shop-hero-badge i {
    margin-right: 8px;
}

.shop-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--shop-white);
}

.shop-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Section */
.shop-section {
    padding: 50px 0 80px;
}

/* Toolbar */
.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.shop-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shop-cat-pill {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 50px;
    background: var(--shop-white);
    color: var(--shop-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.shop-cat-pill:hover,
.shop-cat-pill.active {
    background: var(--shop-gold);
    color: var(--shop-white);
    border-color: var(--shop-gold);
}

.shop-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--shop-dark);
    color: var(--shop-white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.25s;
}

.shop-cart-link:hover {
    background: var(--shop-gold);
    color: var(--shop-white);
}

.shop-cart-badge {
    background: var(--shop-gold);
    color: var(--shop-white);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 50px;
    min-width: 22px;
    text-align: center;
}

/* Product Grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.shop-grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.shop-card {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    overflow: hidden;
    box-shadow: var(--shop-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shop-shadow-hover);
}

.shop-card-image {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--shop-light);
}

.shop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.shop-card:hover .shop-card-image img {
    transform: scale(1.06);
}

.shop-card-body {
    padding: 20px;
}

.shop-card-cat {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--shop-gold);
    font-weight: 600;
    margin-bottom: 8px;
}

.shop-card-body h2 {
    font-size: 1.1rem;
    margin: 0 0 10px;
    line-height: 1.4;
}

.shop-card-body h2 a {
    color: var(--shop-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.shop-card-body h2 a:hover {
    color: var(--shop-gold);
}

.shop-card-summary {
    font-size: 14px;
    color: var(--shop-gray);
    margin: 0 0 16px;
    line-height: 1.5;
}

.shop-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Price */
.shop-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--shop-gold);
}

.shop-price-lg {
    font-size: 2rem;
}

.shop-price-contact {
    font-size: 1rem;
    color: var(--shop-gray);
    font-weight: 500;
}

.shop-price-note {
    display: block;
    font-size: 13px;
    color: var(--shop-gray);
    margin-top: 4px;
}

/* Buttons */
.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--shop-light);
    color: var(--shop-dark);
}

.shop-btn:hover {
    background: var(--shop-gold);
    color: var(--shop-white);
}

.shop-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.shop-btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.shop-btn-primary {
    background: var(--shop-gold);
    color: var(--shop-white);
}

.shop-btn-primary:hover {
    background: var(--shop-gold-dark);
    color: var(--shop-white);
}

.shop-btn-outline {
    background: transparent;
    border-color: var(--shop-gold);
    color: var(--shop-gold);
}

.shop-btn-outline:hover {
    background: var(--shop-gold);
    color: var(--shop-white);
}

.shop-btn-paypal {
    width: 100%;
    background: #0070ba;
    border-color: #0070ba;
}

.shop-btn-paypal:hover {
    background: #003087;
    border-color: #003087;
}

.shop-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Breadcrumb */
.shop-breadcrumb {
    background: var(--shop-light);
    padding: 14px 0;
    font-size: 14px;
}

.shop-breadcrumb a {
    color: var(--shop-gold);
    text-decoration: none;
}

.shop-breadcrumb a:hover {
    text-decoration: underline;
}

.shop-breadcrumb span {
    color: var(--shop-gray);
    margin: 0 8px;
}

/* Product Detail */
.shop-product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 50px;
}

.shop-product-gallery {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    overflow: hidden;
    box-shadow: var(--shop-shadow);
}

.shop-product-gallery img {
    width: 100%;
    display: block;
}

.shop-product-info h1 {
    font-size: 2rem;
    margin: 0 0 16px;
    color: var(--shop-dark);
}

.shop-product-summary {
    font-size: 1.05rem;
    color: var(--shop-gray);
    line-height: 1.7;
    margin-bottom: 24px;
}

.shop-product-price-block {
    margin-bottom: 28px;
    padding: 20px;
    background: var(--shop-light);
    border-radius: var(--shop-radius);
    border-left: 4px solid var(--shop-gold);
}

.shop-add-form {
    margin-bottom: 24px;
}

.shop-qty-row {
    margin-bottom: 16px;
}

.shop-qty-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.shop-qty-input {
    width: 80px;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}

.shop-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.shop-trust-badges span {
    font-size: 13px;
    color: var(--shop-gray);
}

.shop-trust-badges i {
    color: var(--shop-gold);
    margin-right: 6px;
}

/* Description */
.shop-product-description {
    background: var(--shop-white);
    padding: 36px;
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow);
    margin-bottom: 50px;
}

.shop-product-description h2 {
    font-size: 1.4rem;
    margin: 0 0 20px;
    color: var(--shop-dark);
}

.shop-desc-content {
    line-height: 1.8;
    color: #374151;
}

.shop-related h2 {
    font-size: 1.4rem;
    margin: 0 0 24px;
}

/* Cart */
.shop-page-title {
    font-size: 2rem;
    margin: 0 0 32px;
    color: var(--shop-dark);
}

.shop-cart-table-wrap {
    overflow-x: auto;
    margin-bottom: 24px;
}

.shop-cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    overflow: hidden;
    box-shadow: var(--shop-shadow);
}

.shop-cart-table th,
.shop-cart-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.shop-cart-table th {
    background: var(--shop-light);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--shop-gray);
}

.shop-cart-product a {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--shop-dark);
    font-weight: 500;
}

.shop-cart-product img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.shop-remove {
    color: #dc2626;
    font-size: 18px;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.shop-remove:hover {
    opacity: 1;
}

.shop-cart-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.shop-cart-actions-left {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-cart-totals {
    text-align: right;
}

.shop-total-row {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.shop-total-row strong {
    color: var(--shop-gold);
    margin-left: 16px;
}

/* Checkout */
.shop-checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.shop-checkout-form-wrap,
.shop-checkout-summary {
    background: var(--shop-white);
    padding: 32px;
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow);
}

.shop-checkout-form-wrap h2,
.shop-checkout-summary h2 {
    font-size: 1.2rem;
    margin: 0 0 24px;
    color: var(--shop-dark);
}

.shop-form-row {
    margin-bottom: 18px;
}

.shop-form-row label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--shop-dark);
}

.shop-form-row input,
.shop-form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.shop-form-row input:focus,
.shop-form-row textarea:focus {
    outline: none;
    border-color: var(--shop-gold);
}

.shop-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.shop-summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.shop-summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.shop-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    padding: 16px 0;
    border-top: 2px solid var(--shop-gold);
    margin-bottom: 16px;
}

.shop-summary-note {
    font-size: 13px;
    color: var(--shop-gray);
    margin: 0;
}

.shop-summary-note i {
    color: var(--shop-gold);
    margin-right: 6px;
}

/* Alerts */
.shop-alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-alert a {
    margin-left: auto;
    font-weight: 600;
    color: inherit;
}

.shop-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.shop-alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.shop-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Empty state */
.shop-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow);
}

.shop-empty i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 20px;
}

.shop-empty h3 {
    font-size: 1.4rem;
    margin: 0 0 10px;
    color: var(--shop-dark);
}

.shop-empty p {
    color: var(--shop-gray);
    margin: 0 0 24px;
}

/* Success */
.shop-success {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: var(--shop-white);
    padding: 50px 40px;
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow);
}

.shop-success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 20px;
}

.shop-success h1 {
    font-size: 1.8rem;
    margin: 0 0 12px;
    color: var(--shop-dark);
}

.shop-success-details {
    background: var(--shop-light);
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
    text-align: left;
}

.shop-success-details p {
    margin: 8px 0;
}

.shop-success-items {
    text-align: left;
    margin-bottom: 24px;
}

.shop-success-items ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-success-items li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.shop-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 980px) {
    .shop-page:not(:has(.shop-hero)) {
        padding-top: 0;
    }
}

@media (max-width: 992px) {
    .shop-product-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .shop-checkout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .shop-hero {
        padding: 50px 0;
    }

    .shop-hero h1 {
        font-size: 2rem;
    }

    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .shop-cart-link {
        justify-content: center;
    }

    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .shop-cart-table thead {
        display: none;
    }

    .shop-cart-table tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 12px;
    }

    .shop-cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        padding: 8px 0;
    }

    .shop-cart-table td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 12px;
        text-transform: uppercase;
        color: var(--shop-gray);
    }

    .shop-form-row-2 {
        grid-template-columns: 1fr;
    }

    .shop-cart-actions {
        flex-direction: column;
    }

    .shop-cart-totals {
        text-align: center;
        width: 100%;
    }

    .shop-product-info h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }

    .shop-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .shop-btn-sm {
        text-align: center;
    }
}
