/* ============================================================
   GentleJewel Core Styles
   Minimalist Elegance
   ============================================================ */

@import url('fonts.css');

/* -----------------------------------------------------------
   Reset & Base
   ----------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* -----------------------------------------------------------
   Layout Containers
   ----------------------------------------------------------- */
.gj-wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.gj-wrap--narrow {
    max-width: 900px;
}

.gj-main {
    flex: 1;
}

/* -----------------------------------------------------------
   Announcement Bar
   ----------------------------------------------------------- */
.gj-announce {
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: var(--space-xs) var(--space-md);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.gj-announce a {
    color: var(--color-white);
    text-decoration: underline;
}

/* -----------------------------------------------------------
   Header Styles
   ----------------------------------------------------------- */
.gj-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.gj-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-md);
}

.gj-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 1px;
}

.gj-logo span {
    color: var(--color-primary);
}

.gj-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.gj-search__input {
    width: 100%;
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-bg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.gj-search__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.1);
}

.gj-search__btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.375rem;
    color: var(--color-text-light);
}

.gj-header__tools {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.gj-currency {
    position: relative;
}

.gj-currency__select {
    appearance: none;
    padding: 0.5rem 1.75rem 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-white);
    font-size: 0.875rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.gj-cart {
    position: relative;
    padding: 0.5rem;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.gj-cart:hover {
    color: var(--color-primary);
}

.gj-cart__count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.625rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -----------------------------------------------------------
   Navigation
   ----------------------------------------------------------- */
.gj-nav {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.gj-nav__list {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    list-style: none;
    padding: var(--space-sm) 0;
}

.gj-nav__link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    padding: 0.25rem 0;
    position: relative;
}

.gj-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.gj-nav__link:hover::after,
.gj-nav__link--active::after {
    width: 100%;
}

/* -----------------------------------------------------------
   Hero Section
   ----------------------------------------------------------- */
.gj-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
    overflow: hidden;
}

.gj-hero__content {
    flex: 1;
    padding: var(--space-xl) var(--space-md);
    max-width: 600px;
}

.gj-hero__tagline {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.gj-hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.gj-hero__text {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    max-width: 480px;
}

.gj-hero__image {
    flex: 1;
    max-width: 50%;
    padding: var(--space-lg);
}

.gj-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

/* -----------------------------------------------------------
   Buttons
   ----------------------------------------------------------- */
.gj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all var(--transition-base);
    cursor: pointer;
}

.gj-btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.gj-btn--primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
}

.gj-btn--secondary {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-text);
}

.gj-btn--secondary:hover {
    background: var(--color-text);
    color: var(--color-white);
}

.gj-btn--ghost {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.gj-btn--ghost:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* -----------------------------------------------------------
   Section Styles
   ----------------------------------------------------------- */
.gj-section {
    padding: var(--space-xxl) 0;
}

.gj-section--alt {
    background: var(--color-bg-alt);
}

.gj-section__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.gj-section__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-xs);
}

.gj-section__subtitle {
    color: var(--color-text-light);
    font-size: 1.0625rem;
}

/* -----------------------------------------------------------
   Product Grid
   ----------------------------------------------------------- */
.gj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.gj-product {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gj-product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.gj-product__image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.gj-product__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gj-product:hover .gj-product__image img {
    transform: scale(1.05);
}

.gj-product__badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
}

.gj-product__info {
    padding: var(--space-md);
}

.gj-product__name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.gj-product__name:hover {
    color: var(--color-primary);
}

.gj-product__price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.gj-product__price--current {
    color: var(--color-primary);
    font-size: 1.125rem;
}

.gj-product__price--original {
    color: var(--color-text-muted);
    text-decoration: line-through;
    font-size: 0.9375rem;
}

/* -----------------------------------------------------------
   Features Section
   ----------------------------------------------------------- */
.gj-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
}

.gj-feature {
    text-align: center;
    padding: var(--space-lg);
}

.gj-feature__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-sm);
    color: var(--color-primary);
}

.gj-feature__title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.gj-feature__text {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

/* -----------------------------------------------------------
   Brand Story Section
   ----------------------------------------------------------- */
.gj-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.gj-story__image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.gj-story__content {
    padding: var(--space-lg);
}

.gj-story__tagline {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.gj-story__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-md);
}

.gj-story__text {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

/* -----------------------------------------------------------
   Stats Section
   ----------------------------------------------------------- */
.gj-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-lg);
    text-align: center;
}

.gj-stat__number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.gj-stat__label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* -----------------------------------------------------------
   Newsletter Section
   ----------------------------------------------------------- */
.gj-newsletter {
    background: var(--color-text);
    color: var(--color-white);
    padding: var(--space-xl) 0;
    text-align: center;
}

.gj-newsletter__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--space-xs);
}

.gj-newsletter__text {
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-md);
}

.gj-newsletter__form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: var(--space-sm);
}

.gj-newsletter__input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9375rem;
}

.gj-newsletter__btn {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.875rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.gj-newsletter__btn:hover {
    background: var(--color-primary-dark);
}

/* -----------------------------------------------------------
   Footer Styles
   ----------------------------------------------------------- */
.gj-footer {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: var(--space-xl) 0 var(--space-lg);
}

.gj-footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.gj-footer__brand {
    max-width: 320px;
}

.gj-footer__logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.gj-footer__logo span {
    color: var(--color-primary);
}

.gj-footer__text {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.gj-footer__social {
    display: flex;
    gap: var(--space-sm);
}

.gj-footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.gj-footer__social a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.gj-footer__title {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.gj-footer__links {
    list-style: none;
}

.gj-footer__links li {
    margin-bottom: 0.625rem;
}

.gj-footer__links a {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

.gj-footer__links a:hover {
    color: var(--color-primary);
}

.gj-footer__bottom {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* -----------------------------------------------------------
   Responsive Styles
   ----------------------------------------------------------- */
@media (max-width: 992px) {
    .gj-header__inner {
        flex-wrap: wrap;
    }
    
    .gj-search {
        order: 3;
        max-width: none;
        width: 100%;
    }
    
    .gj-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .gj-hero__content {
        max-width: none;
        padding: var(--space-lg) var(--space-md);
    }
    
    .gj-hero__text {
        margin-left: auto;
        margin-right: auto;
    }
    
    .gj-hero__image {
        max-width: 100%;
        padding: 0 var(--space-md) var(--space-lg);
    }
    
    .gj-story {
        grid-template-columns: 1fr;
    }
    
    .gj-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gj-nav__list {
        gap: var(--space-sm);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: var(--space-sm);
    }
    
    .gj-nav__link {
        white-space: nowrap;
        font-size: 0.875rem;
    }
    
    .gj-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .gj-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gj-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .gj-footer__bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .gj-newsletter__form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .gj-grid {
        grid-template-columns: 1fr;
    }
    
    .gj-features {
        grid-template-columns: 1fr;
    }
}
