/*
Theme Name: SAMSUNG-SHOP
Description: Кастомная тема для магазина
Version: 1.0
Author: HAP
*/

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

:root {
    --primary: #1428A0;
    --primary-light: #0066ff;
    --secondary: #ff4757;
    --success: #2ecc71;
    --dark: #000;
    --light: #fff;
    --gray: #666;
    --light-gray: #f8f9fa;
    --border: #e0e0e0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}



/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, rgba(10, 26, 77, 0.95) 0%, rgba(20, 40, 160, 0.92) 50%, rgba(0, 102, 204, 0.9) 100%),
    url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1600&q=80') center/cover;
    color: var(--light);
    padding: 100px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.92;
    max-width: 600px;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.4);
}

.hero-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 20%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.hero-decoration:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 5%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: white;
}

.breadcrumbs span:last-child {
    color: white;
}






/* Cookie Modal */
.cookie-modal {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 20px;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cookie-modal.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 25px;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-icon {
    font-size: 3rem;
    color: var(--primary);
    min-width: 60px;
    text-align: center;
    animation: rotate 2s ease-in-out infinite;
}

@keyframes rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 600;
}

.cookie-text p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.3s;
}

.cookie-text a:hover {
    color: var(--primary-light);
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
}

.cookie-accept {
    background: var(--primary);
    color: #fff;
}

.cookie-accept:hover {
    background: var(--primary-light);
    box-shadow: 0 5px 15px rgba(20, 40, 160, 0.3);
}

.cookie-decline {
    background: #f0f0f0;
    color: var(--gray);
}

.cookie-decline:hover {
    background: #e0e0e0;
    color: var(--dark);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .cookie-modal {
        padding: 15px;
    }

    .cookie-content {
        flex-direction: column;
        padding: 25px 20px;
        gap: 20px;
        text-align: center;
    }

    .cookie-icon {
        font-size: 2.5rem;
    }

    .cookie-text h3 {
        font-size: 1.2rem;
    }

    .cookie-text p {
        font-size: 0.9rem;
    }

    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .cookie-content {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .cookie-icon {
        font-size: 2rem;
    }

    .cookie-text h3 {
        font-size: 1.1rem;
    }

    .cookie-text p {
        font-size: 0.85rem;
    }

    .cookie-btn {
        font-size: 0.95rem;
        padding: 12px 18px;
    }
}












/* Order Success Page */
.woocommerce-order-success {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.order-success-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.success-icon {
    font-size: 5rem;
    color: var(--success);
    margin-bottom: 20px;
    animation: scaleIn 0.6s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.order-success-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.order-success-message {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.order-details-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.order-info-box,
.order-items-box,
.order-address-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.order-info-box h2,
.order-items-box h2,
.order-address-box h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

.order-overview {
    list-style: none;
    padding: 0;
    margin: 0;
}

.order-overview li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-overview li:last-child {
    border-bottom: none;
}

.order-overview .label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    font-weight: 500;
}

.order-overview .label i {
    color: var(--primary);
    width: 20px;
}

.order-overview .value {
    font-weight: 600;
    color: var(--dark);
}

.order-overview .order-total .value {
    font-size: 1.3rem;
    color: var(--primary);
}

/* Order Items */
.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.order-item:hover {
    background: #f0f0f0;
}

.item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

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

.item-details {
    flex: 1;
}

.item-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--dark);
}

.item-quantity {
    margin: 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.item-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

/* Address */
.order-address-box address {
    font-style: normal;
    line-height: 1.8;
    color: var(--dark);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.order-address-box address i {
    color: var(--primary);
    margin-top: 5px;
}

/* Actions */
.order-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.order-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px !important;
    background: var(--primary) !important;
    color: #fff !important;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.order-actions .button:hover {
    background: var(--primary-light) !important;
    box-shadow: 0 5px 15px rgba(20, 40, 160, 0.3);
}

.order-actions .button-secondary {
    background: #f0f0f0 !important;
    color: var(--dark) !important;
}

.order-actions .button-secondary:hover {
    background: #e0e0e0 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Error State */
.order-error {
    text-align: center;
    padding: 60px 20px;
}

.order-error i {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.order-error p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .order-success-header {
        padding: 30px 20px;
    }

    .success-icon {
        font-size: 3.5rem;
    }

    .order-success-header h1 {
        font-size: 1.8rem;
    }

    .order-success-message {
        font-size: 1rem;
    }

    .order-info-box,
    .order-items-box,
    .order-address-box {
        padding: 20px;
    }

    .order-overview li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .order-item {
        flex-direction: column;
        text-align: center;
    }

    .item-image {
        width: 100%;
        height: 200px;
    }

    .order-actions {
        flex-direction: column;
    }

    .order-actions .button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .woocommerce-order-success {
        margin: 30px auto;
    }

    .order-success-header h1 {
        font-size: 1.5rem;
    }

    .success-icon {
        font-size: 3rem;
    }
}


.mobile-phone-site {
    display: none;
}

@media (max-width: 768px) {
    .mobile-phone-site {
        padding: 10px 15px;

        display: block;

        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;

        background: var(--primary);
        color: white;
        font-size: 14px;
        text-decoration: none;
        border-radius: 12px;
    }
}