:root {
    --sf-primary: #6366f1;
    --sf-primary-dark: #4f46e5;
    --sf-slate-900: #0f172a;
    --sf-slate-800: #1e293b;
    --sf-slate-100: #f1f5f9;
    --sf-slate-50: #f8fafc;
    --sf-white: #ffffff;
    --sf-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --sf-radius: 20px;
}

.sf-section {
    padding: 120px 0;
    background-color: var(--sf-slate-50);
    min-height: 80vh;
}

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

.sf-grid {
    display: grid;
    gap: 30px;
}

.sf-grid-cols-12 {
    grid-template-columns: repeat(12, 1fr);
}

.col-span-8 {
    grid-column: span 8;
}

.col-span-4 {
    grid-column: span 4;
}

@media (max-width: 1024px) {

    .col-span-8,
    .col-span-4 {
        grid-column: span 12;
    }
}

.sf-header {
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.sf-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--sf-slate-900);
    letter-spacing: -0.04em;
    margin: 0;
    line-height: 1;
}

.sf-subtitle {
    font-size: 18px;
    color: #64748b;
    margin-top: 15px;
    max-width: 600px;
}

.sf-panel {
    background: var(--sf-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--sf-radius);
    padding: 35px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sf-panel:hover {
    transform: translateY(-2px);
    box-shadow: var(--sf-shadow);
}

.sf-product-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.sf-product-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    padding: 16px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sf-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.sf-product-image {
    aspect-ratio: 1 / 1;
    height: auto;
    background: #f8fafc;
    border-radius: 18px;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.sf-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.sf-product-card:hover .sf-product-image img {
    transform: scale(1.1);
}

.sf-product-image i {
    font-size: 64px;
    color: #cbd5e1;
}

.sf-product-info h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: var(--sf-slate-900);
}

.sf-product-price {
    font-size: 22px;
    font-weight: 900;
    color: var(--sf-primary);
    margin-top: 15px;
}

.sf-product-price small {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    margin-left: 5px;
}

/* Variation Engine */
.sf-variation-group {
    margin-top: 15px;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.sf-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.sf-select {
    width: 100%;
    height: 45px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 0 12px;
    font-weight: 700;
    color: #475569;
    outline: none;
}

/* Checkout Components */
.sf-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

@media (max-width: 1024px) {
    .sf-checkout-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Detail Specifics */
.sf-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 1024px) {
    .sf-detail-grid {
        grid-template-columns: 1fr;
    }
}

.sf-detail-image-wrap {
    overflow: hidden;
    border-radius: var(--sf-radius);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: var(--sf-shadow);
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.sf-detail-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sf-price-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sf-detail-price {
    font-size: 48px;
    font-weight: 900;
    color: var(--sf-primary);
    letter-spacing: -0.05em;
}

.sf-detail-price small {
    font-size: 20px;
    color: #94a3b8;
    font-weight: 600;
}

.sf-variation-engine {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sf-multi-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.sf-multi-option:hover {
    border-color: var(--sf-primary);
    background: #fff;
}

.sf-narrative-content {
    font-size: 17px;
    line-height: 1.9;
    color: #475569;
    max-width: 800px;
}

.sf-narrative-content h1,
.sf-narrative-content h2 {
    color: var(--sf-slate-900);
    margin-top: 40px;
    margin-bottom: 20px;
}

.sf-narrative-content ul {
    padding-left: 20px;
    margin-bottom: 25px;
}

.sf-narrative-content li {
    margin-bottom: 10px;
}

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

.sf-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sf-control {
    width: 100%;
    height: 50px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 0 16px;
    font-weight: 600;
    transition: border-color 0.3s;
    outline: none;
}

.sf-control:focus {
    border-color: var(--sf-primary);
    background: #fff;
}

.sf-registry {
    position: sticky;
    top: 100px;
}

.sf-registry-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px dashed #f1f5f9;
    margin-bottom: 12px;
}

.sf-registry-item h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--sf-slate-900);
}

.sf-registry-item p {
    margin: 5px 0 0 0;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.sf-summary {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
}

.sf-summary-line {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 10px;
}

.sf-summary-total {
    font-size: 28px;
    font-weight: 900;
    color: var(--sf-primary);
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    margin-top: 15px;
}

/* Buttons */
.sf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 14px;
    font-weight: 800;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.sf-btn-primary {
    background: var(--sf-primary);
    color: white;
    height: 55px;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.sf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.6);
}

.sf-btn-outline {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: var(--sf-slate-800);
    height: 55px;
}

.sf-btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.sf-badge-success {
    background: #dcfce7;
    color: #166534;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

/* Mobile Floating Cart */
.sf-floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 100px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid #f1f5f9;
}

.sf-cart-count {
    background: var(--sf-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 50%;
    font-size: 11px;
}