/* ============================================
   GIFTSEG - Professional Gift Store Theme
   Gold & Black Luxury Design + Animations
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--gs-font-ar);
    background: var(--gs-black);
    color: var(--gs-white);
    direction: rtl;
    overflow-x: hidden;
    line-height: 1.7;
}

/* ===== NAVIGATION ===== */
.gs-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0 40px;
    height: 72px;
    display: flex;
    align-items: center;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212,175,55,0.15);
    transition: var(--gs-transition);
}
.gs-nav.scrolled {
    background: rgba(10,10,10,0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.gs-nav-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.gs-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    color: var(--gs-white);
    letter-spacing: -0.5px;
}
.gs-logo-icon { font-size: 28px; }
.gs-logo-text .gold { color: var(--gs-gold); }
.gs-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}
.gs-menu > li { position: relative; }
.gs-menu > li > a {
    display: block;
    padding: 8px 16px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--gs-transition);
}
.gs-menu > li > a:hover {
    color: var(--gs-gold);
    background: rgba(212,175,55,0.08);
}
.gs-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--gs-dark2);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 12px;
    padding: 10px;
    list-style: none;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--gs-transition);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.has-dropdown:hover .gs-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.gs-dropdown li a {
    display: block;
    padding: 10px 16px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: var(--gs-transition);
}
.gs-dropdown li a:hover {
    background: rgba(212,175,55,0.1);
    color: var(--gs-gold);
    padding-right: 24px;
}
.gs-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.gs-cart-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 50px;
    color: var(--gs-gold);
    text-decoration: none;
    font-size: 14px;
    transition: var(--gs-transition);
}
.gs-cart-btn:hover {
    background: var(--gs-gold);
    color: var(--gs-black);
}
.gs-cart-count {
    background: var(--gs-gold);
    color: var(--gs-black);
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}
.gs-mobile-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(212,175,55,0.3);
    color: var(--gs-gold);
    width: 42px; height: 42px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
}

/* Mobile Menu */
.gs-mobile-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gs-dark);
    z-index: 2000;
    padding: 80px 30px 30px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.gs-mobile-menu.open {
    transform: translateX(0);
}
.gs-mobile-close {
    position: absolute;
    top: 20px; left: 20px;
    background: none;
    border: 1px solid rgba(212,175,55,0.3);
    color: var(--gs-gold);
    width: 42px; height: 42px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
}
.gs-mobile-menu ul { list-style: none; }
.gs-mobile-menu ul li {
    border-bottom: 1px solid rgba(212,175,55,0.1);
}
.gs-mobile-menu ul li a {
    display: block;
    padding: 18px 0;
    color: var(--gs-white);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s;
}
.gs-mobile-menu ul li a:hover { color: var(--gs-gold); }

/* ===== HERO SECTION ===== */
.giftseg-hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gs-black) 0%, var(--gs-dark2) 50%, #0d0a00 100%);
    padding: 120px 5% 80px;
    position: relative;
    overflow: hidden;
}
.hero-particles {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212,175,55,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212,175,55,0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(212,175,55,0.03) 0%, transparent 50%);
    animation: particlePulse 6s ease-in-out infinite;
}
@keyframes particlePulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    flex: 1;
}
.hero-badge {
    display: inline-block;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.3);
    color: var(--gs-gold);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease forwards;
    opacity: 0;
    transform: translateY(-20px);
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}
.hero-title .line1 { display: block; }
.hero-title .gold-text {
    color: var(--gs-gold);
    font-family: var(--gs-font-en);
    font-style: italic;
    display: block;
    text-shadow: 0 0 40px rgba(212,175,55,0.4);
}
.hero-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    line-height: 1.8;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--gs-gold) 0%, var(--gs-gold-dark) 100%);
    color: var(--gs-black);
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    transition: var(--gs-transition);
    box-shadow: 0 8px 30px rgba(212,175,55,0.3);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gs-gold-light) 0%, var(--gs-gold) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-primary:hover { 
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212,175,55,0.5);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary span { position: relative; z-index: 1; }
.btn-arrow { 
    font-size: 20px;
    transition: transform 0.3s;
}
.btn-primary:hover .btn-arrow { transform: translateX(-5px); }
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border: 2px solid rgba(212,175,55,0.4);
    color: var(--gs-gold);
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--gs-transition);
    background: transparent;
}
.btn-secondary:hover {
    background: rgba(212,175,55,0.1);
    border-color: var(--gs-gold);
    transform: translateY(-3px);
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}
.stat { text-align: center; }
.stat-num {
    font-size: 32px;
    font-weight: 900;
    color: var(--gs-gold);
    font-family: var(--gs-font-en);
}
.stat p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(212,175,55,0.3);
}

/* Hero Visual - 3D Gift Box */
.hero-visual {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}
.gift-box-3d {
    width: 180px;
    height: 160px;
    position: relative;
    transform-style: preserve-3d;
    animation: floatBox 4s ease-in-out infinite, rotateBox 12s linear infinite;
}
@keyframes floatBox {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-20px) rotateY(10deg); }
}
.box-face {
    position: absolute;
    border-radius: 8px;
}
.box-front {
    width: 180px; height: 140px;
    background: linear-gradient(135deg, #8B0000 0%, #CC0000 50%, #990000 100%);
    bottom: 0;
    border: 2px solid rgba(212,175,55,0.5);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}
.box-top {
    width: 180px; height: 30px;
    background: linear-gradient(135deg, #CC0000 0%, #FF0000 100%);
    top: 10px;
    border: 2px solid rgba(212,175,55,0.5);
}
.box-ribbon-v {
    position: absolute;
    width: 16px; height: 170px;
    background: linear-gradient(to bottom, var(--gs-gold-light), var(--gs-gold));
    left: 50%; transform: translateX(-50%);
    top: 0;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(212,175,55,0.5);
}
.box-ribbon-h {
    position: absolute;
    width: 184px; height: 16px;
    background: linear-gradient(to right, var(--gs-gold-light), var(--gs-gold));
    top: 22px; left: -2px;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(212,175,55,0.5);
}
.box-bow {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
    animation: bowBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(212,175,55,0.6));
}
.box-bow::before { content: '🎀'; }
@keyframes bowBounce {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: rgba(20,20,20,0.9);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--gs-white);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.card1 {
    top: 10%; right: 5%;
    animation: floatCard1 5s ease-in-out infinite;
}
.card2 {
    bottom: 20%; left: 5%;
    animation: floatCard2 6s ease-in-out infinite 1s;
}
.card3 {
    top: 50%; right: 0%;
    animation: floatCard3 4s ease-in-out infinite 0.5s;
}
@keyframes floatCard1 {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}
@keyframes floatCard2 {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-20px) rotate(-1deg); }
}
@keyframes floatCard3 {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

/* ===== CATEGORIES SECTION ===== */
.giftseg-categories-section {
    padding: 100px 5%;
    background: var(--gs-dark);
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-tag {
    display: inline-block;
    background: rgba(212,175,55,0.1);
    color: var(--gs-gold);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(212,175,55,0.2);
    margin-bottom: 16px;
}
.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--gs-white);
    margin-bottom: 12px;
}
.section-header p {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}
.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3/4;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--gs-transition);
    border: 1px solid rgba(212,175,55,0.1);
}
.category-card:hover { transform: translateY(-12px) scale(1.02); }
.cat-personal { background: linear-gradient(160deg, #1a0a1a 0%, #2d1a3a 100%); }
.cat-corporate { background: linear-gradient(160deg, #0a0a1a 0%, #1a1a3a 100%); }
.cat-kids { background: linear-gradient(160deg, #0a1a0a 0%, #1a2a1a 100%); }
.cat-custom { background: linear-gradient(160deg, #1a1000 0%, #2a2000 100%); }
.cat-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 72px;
    transition: all 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
    opacity: 0.9;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}
.category-card:hover .cat-icon {
    transform: translate(-50%, -65%) scale(1.15);
    opacity: 1;
}
.cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
}
.cat-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    transform: translateY(10px);
    transition: var(--gs-transition);
}
.category-card:hover .cat-content { transform: translateY(0); }
.cat-content h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--gs-white);
    margin-bottom: 4px;
}
.cat-content p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
}
.cat-arrow {
    display: inline-block;
    color: var(--gs-gold);
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--gs-transition);
}
.category-card:hover .cat-arrow {
    opacity: 1;
    transform: translateX(0);
}
.cat-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s;
    border-radius: 20px;
    box-shadow: inset 0 0 40px rgba(212,175,55,0.2);
}
.category-card:hover .cat-glow { opacity: 1; }

/* ===== FEATURES SECTION ===== */
.giftseg-features-section {
    padding: 80px 5%;
    background: var(--gs-black);
    border-top: 1px solid rgba(212,175,55,0.1);
    border-bottom: 1px solid rgba(212,175,55,0.1);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}
.feature-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(212,175,55,0.08);
    transition: var(--gs-transition);
}
.feature-item:hover {
    background: rgba(212,175,55,0.05);
    border-color: rgba(212,175,55,0.2);
    transform: translateY(-5px);
}
.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
}
.feature-item h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gs-white);
    margin-bottom: 8px;
}
.feature-item p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.giftseg-cta-section {
    padding: 100px 5%;
    background: linear-gradient(135deg, #0d0a00 0%, #1a1400 50%, #0d0a00 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.giftseg-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(212,175,55,0.1) 0%, transparent 70%);
    animation: ctaPulse 4s ease-in-out infinite;
}
@keyframes ctaPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}
.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--gs-white);
}
.cta-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 36px;
    line-height: 1.8;
}

/* ===== FOOTER ===== */
.site-footer, footer {
    background: var(--gs-dark2) !important;
    color: rgba(255,255,255,0.6) !important;
    border-top: 1px solid rgba(212,175,55,0.15) !important;
    padding: 60px 5% 30px !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal classes */
.gs-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.gs-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== GOLD SHIMMER EFFECT ===== */
.gold-shimmer {
    background: linear-gradient(90deg, var(--gs-gold) 0%, var(--gs-gold-light) 50%, var(--gs-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
    from { background-position: 0% center; }
    to { background-position: 200% center; }
}

/* ===== PAGE TRANSITIONS ===== */
.gs-page-enter {
    animation: pageEnter 0.6s ease forwards;
}
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .gs-nav { padding: 0 20px; }
    .gs-menu { display: none; }
    .gs-mobile-toggle { display: flex; align-items: center; justify-content: center; }
    .giftseg-hero-section { padding: 100px 5% 60px; flex-direction: column; }
    .hero-visual { display: none; }
    .categories-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .features-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .hero-stats { gap: 16px; }
    .stat-num { font-size: 24px; }
}
@media (max-width: 480px) {
    .categories-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .btn-primary, .btn-secondary { text-align: center; justify-content: center; }
}

/* ===== WOOCOMMERCE OVERRIDES ===== */
.woocommerce-page body, .woocommerce body { background: var(--gs-dark) !important; }

/* ===== LOADING SCREEN ===== */
#gs-loader {
    position: fixed;
    inset: 0;
    background: var(--gs-black);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#gs-loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.gs-loader-logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--gs-white);
}
.gs-loader-logo span { color: var(--gs-gold); }
.gs-loader-bar {
    width: 200px; height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}
.gs-loader-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--gs-gold-dark), var(--gs-gold-light));
    border-radius: 2px;
    animation: loadBar 1.5s ease forwards;
}
@keyframes loadBar {
    from { width: 0; }
    to { width: 100%; }
}
