/* Content Ranch - Mad Goat Design System */
:root {
    /* Colors - HSL format */
    --background: 0 0% 100%;
    --foreground: 0 0% 13%;
    --card: 0 0% 98%;
    --card-foreground: 0 0% 13%;
    --primary: 4 91% 58%;
    --primary-foreground: 0 0% 98%;
    --secondary: 0 0% 96%;
    --secondary-foreground: 0 0% 13%;
    --muted: 0 0% 96%;
    --muted-foreground: 0 0% 45%;
    --accent: 4 91% 58%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 90%;
    --input: 0 0% 96%;
    --ring: 4 91% 58%;

    /* Design System Tokens */
    --gradient-primary: linear-gradient(135deg, hsl(4 91% 58%), hsl(15 100% 60%));
    --gradient-accent: linear-gradient(135deg, hsl(4 91% 58%), hsl(15 100% 65%));
    --shadow-glow: 0 0 40px hsl(4 91% 58% / 0.3);
    --shadow-card: 0 4px 20px -8px hsl(0 0% 0% / 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 0.75rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    color-scheme: light only;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid hsl(var(--border));
    background-color: hsl(var(--background) / 0.95);
    backdrop-filter: blur(12px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: hsl(var(--foreground));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: transparent;
    color: hsl(var(--foreground));
    border-radius: 0.375rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.icon-btn:hover {
    background-color: hsl(var(--muted));
}

/* Main Content */
.main {
    padding: 2rem 0;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Image Section */
.image-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: hsl(var(--card));
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.content-ranch-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    padding: 2rem;
}

.ranch-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.image-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.thumbnail {
    flex-shrink: 0;
    width: 5rem;
    height: 5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid hsl(var(--border));
    background-color: hsl(var(--card));
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    border-color: hsl(var(--primary) / 0.5);
}

.thumbnail.active {
    border-color: hsl(var(--primary));
    box-shadow: var(--shadow-glow);
}

/* Product Details */
.details-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid transparent;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--gradient-primary);
    color: hsl(var(--primary-foreground));
}

.product-title {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: -0.025em;
}

.pricing {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-price {
    font-size: 2rem;
    font-weight: bold;
    color: hsl(var(--primary));
}

.original-price {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    text-decoration: line-through;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
}

/* Product Description */
.product-description {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.description-text {
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.feature svg {
    color: hsl(var(--primary));
}

/* Product Options */
.product-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.options-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.option-card {
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1rem;
    background-color: hsl(var(--card));
    transition: var(--transition-smooth);
    cursor: pointer;
}

.option-card:hover {
    border-color: hsl(var(--primary) / 0.5);
}

.option-card.selected {
    border-color: hsl(var(--primary));
    box-shadow: var(--shadow-glow);
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.option-name {
    font-weight: 600;
}

.option-price {
    font-weight: bold;
    color: hsl(var(--primary));
}

.option-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quantity-control label {
    font-size: 0.875rem;
    font-weight: 500;
}

.quantity-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    background-color: transparent;
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: var(--transition-smooth);
}

.qty-btn:hover {
    background-color: hsl(var(--muted));
}

.quantity {
    min-width: 3rem;
    text-align: center;
}

/* Purchase Section */
.purchase-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    min-height: 2.75rem;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    border: 1px solid hsl(var(--border));
    background-color: transparent;
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background-color: hsl(var(--muted));
}

/* Tabs */
.tabs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tab-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: hsl(var(--muted));
    border-radius: 0.375rem;
    padding: 0.25rem;
}

.tab-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-trigger.active {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.card {
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.card-content {
    padding: 1rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
}

.spec-label {
    color: hsl(var(--muted-foreground));
}

.spec-value {
    margin-left: 0.5rem;
}

/* Responsive Design */
@media (min-width: 640px) {
    .purchase-section {
        flex-direction: row;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
    
    .product-title {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .main {
        padding: 2rem 0;
    }
    
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .product-title {
        font-size: 2.25rem;
    }
}
